Better documentation for --("hyphenated-name") longs with clap_app! macro #919
Labels
A-docs
Area: documentation, including docs.rs, readme, examples, etc...
C-enhancement
Category: Raise on the bar on expectations
Rust Version
1.15.0
Affected Version of clap
2.22.1
Expected Behavior Summary
Adding options with similar but unique names separated by hyphens should not throw an error.
Actual Behavior Summary
Adding multiple options with similar names, like in the example below, causes numerous issues with duplicate long/short flags.
Sample Code or Link to Sample Code
Debug output
Here's the output from the definitions as above:
Here's the output if you modify the two options to be
--poweron-value
and--poweroff-value
:It compiles fine if you swap them both to
poweronvalue
andpoweroffvalue
.I hope this info helps. I think it's a bug, but I'm not familiar enough with the repo to fix it myself at the moment :)
The text was updated successfully, but these errors were encountered: