We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc 1.37.0 (eae3437df 2019-08-13)C
2.33.0
help_short() allows conflict option.
when setting arg with short(h) and help_short(h) Clap should give an error about the conflict.
h
Under App pre-condition, App has a -h arg.
-h
help_short()
help_short("h")
Under Subcommand pre-condition, subcommand has -h arg.
--help
The text was updated successfully, but these errors were encountered:
NOTE: .help_short() has been changed to .mut_arg()
.help_short()
.mut_arg()
.mut_arg("help", |h| { h.short('H').long("help").help("Print help information") })
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Rust Version
rustc 1.37.0 (eae3437df 2019-08-13)C
Affected Version of clap
2.33.0
Bug or Feature Request Summary
help_short() allows conflict option.
Expected Behavior Summary
when setting arg with short(
h
) and help_short(h
)Clap should give an error about the conflict.
Actual Behavior Summary
Under App
pre-condition, App has a
-h
arg.help_short()
, clap works as expected.help_short("h")
is set,-h
option prints help info and lists-h
is for two options.Under Subcommand
pre-condition, subcommand has
-h
arg.help_short()
, clap works as expected.help_short("h")
is set,-h
option prints nothing and--help
lists that-h
is for two options.The text was updated successfully, but these errors were encountered: