mirror of
https://github.com/clap-rs/clap
synced 2024-11-15 09:07:10 +00:00
61b8bbd218
`Arg::exclusive` is just another way of defining conflicts, so a present-exclusive arg should override required like other conflicts. Instead of going through the message of enumerating all other arguments as exclusive, I shortcutted it and special case exclusive in the required check like we do with conflicts. The big downside is the implicit coupling between the code paths rather than having a consistent abstraction for covering conflicts. This isn't a breaking change because if someone defined an exclusive arg as a sibling to a required arg, the exclusive arg could never be used, it always errored, and so no valid application can be written with it. Fixes #3595 |
||
---|---|---|
.. | ||
builder | ||
derive | ||
derive_ui | ||
ui | ||
app.yml | ||
derive_ui.rs | ||
examples.rs | ||
macros.rs | ||
ui.rs | ||
yaml.rs |