Open epage opened 2 years ago
Comment by pksunkara Friday Mar 12, 2021 at 20:04 GMT
Need the command which is failing and the debug output.
Comment by pksunkara Friday Mar 12, 2021 at 20:05 GMT
Basically, the "actual behaviour" sections need actual command runs and their outputs.
Comment by DocKDE Friday Mar 12, 2021 at 20:37 GMT
I updated the section for expected and actual behaviour. Although I must add I'm not sure what you mean by failing commands and debug output. My issue is precisely that there is no failing command when I expected it so there's no debug output I can post.
Issue by DocKDE Friday Mar 12, 2021 at 16:01 GMT Originally opened as https://github.com/clap-rs/clap/issues/2409
Please complete the following tasks
Rust Version
1.50.0
Clap Version
3.0.0-beta.2
Minimal reproducible code
Steps to reproduce the bug with the above code
Use this .yaml for any command line parsing.
Actual Behaviour
When calling the binary like
pdbman -QY
it fails witherror: The argument '--query' cannot be used with '--analyze'
. However the same is not true if I call multiple arguments from other groups like so:pdbman -Aqo
orpdbman -Qrt
. These commands run without error. It appears that only the args from the topmost group in the YAML file are recognized as being mutally exclusive. I verified this by changing their order.Expected Behaviour
I would expect a command calling arguments from the same group to also fail with this:
error: The argument '--residues' cannot be used with '--atoms'
if they belong to the same group.Additional Context
No response
Debug Output
No response