pull/3769/head
Junegunn Choi 2 weeks ago
parent ef7a9e5c13
commit b7f0daa765
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -1776,6 +1776,9 @@ func parseOptions(opts *Options, allArgs []string) error {
case "-h", "--help":
clearExitingOpts()
opts.Help = true
case "--version":
clearExitingOpts()
opts.Version = true
case "-x", "--extended":
opts.Extended = true
case "-e", "--exact":
@ -2226,9 +2229,6 @@ func parseOptions(opts *Options, allArgs []string) error {
return err
}
opts.WalkerSkip = filterNonEmpty(strings.Split(str, ","))
case "--version":
clearExitingOpts()
opts.Version = true
case "--profile-cpu":
if opts.CPUProfile, err = nextString(allArgs, &i, "file path required: cpu"); err != nil {
return err

Loading…
Cancel
Save