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
Thanks for taking the time to file this! I do have a question however; why are you using DisableVersion? You can override the default --version by only supplying an arg with a long of version.
As I understand it, and please correct me if I'm wrong, this would be an area where I could improve the docs.
From what I understood, you needed to use DisableVersion to override the default --version, but now I know that it's not necessary! I agree that a note in the docs would be helpful to clear any misunderstandings.
I can still reproduce the issue when not using DisableVersion, though.
Rust Version
rustc 1.18.0-nightly (5e122f59b 2017-04-01)
Affected Version of clap
clap 2.22.2
Expected Behavior Summary
Overriding --version should allow use of a custom version flag.
Actual Behavior Summary
The default version provided by clap is used.
Steps to Reproduce the issue
Specify an
Arg
withshort("v")
andlong("version")
.Sample Code or Link to Sample Code
Debug output
Output
The text was updated successfully, but these errors were encountered: