You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ prog -V
prog 0.1.0
$ prog sub -V
prog-sub
$ prog sub -h
prog-sub
USAGE:
prog sub [FLAGS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
Using clap 1.4.5 and Rust 1.3 on OS X.
The text was updated successfully, but these errors were encountered:
Ah, that's actually an oversight in logic on our behalf. It's working as designed, but the design if flawed 😄
AppSettings::VersionlessSubcommands merely disables inheriting the parent command's version number...but you're correct it should also disable the -V, --version flags.
AppSetting::VersionlessSubCommands
doesn't seem to disable the-V
/--version
options on subcommands as the docs describe:Example executions:
Using clap 1.4.5 and Rust 1.3 on OS X.
The text was updated successfully, but these errors were encountered: