diff --git a/example_test.go b/example_test.go index d9ebeff..364bf53 100644 --- a/example_test.go +++ b/example_test.go @@ -38,8 +38,8 @@ func Example() { // -i, --ints int a slice of ints // -d, --date date formatted date // -v, --verbose enable verbose - // -h, --help show help, then exit // -v, --version show version, then exit + // -h, --help show help, then exit // // See: https://github.com/xo/ox for more information. } diff --git a/opts.go b/opts.go index 6a30172..5cb7dbf 100644 --- a/opts.go +++ b/opts.go @@ -108,10 +108,10 @@ func Exec[F ExecType](f F) CommandOption { } } -// Defaults is a [Command] option to add [Help], [Comp], and [Version] to the -// command. +// Defaults is a [Command] option to add [Version], [Help], and [Comp] options +// to the command. func Defaults(opts ...Option) CommandOption { - options := []Option{Help(opts...), Comp(), Version()} + options := []Option{Version(), Help(opts...), Comp()} return option{ name: "Defaults", cmd: func(cmd *Command) error {