From b7f0daa765ceb2c7289bfcb3d0ca6f52cbcab4ba Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 7 May 2024 00:27:04 +0900 Subject: [PATCH] fixup --- src/options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/options.go b/src/options.go index 0394681e..9abecc3b 100644 --- a/src/options.go +++ b/src/options.go @@ -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