mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 22:02:35 +00:00
e4b443d8bb
Actions were inspired by Python and Python does not implicitly default any field when an action is given. From a Builder API perspective, this seemed fine because we tend to focus the Builder API on giving the user all information so they can make their own decisions. When working on the Derive API, this became a problem because users were going to have to migrate from an implied default to an explicit default when a common default is good enough most of the time. This shouldn't interfere with Builder users getting more details when needed. This also highlighted two problems - We set the index for defaults - We don't debug_assert when applying conditional requirements with a default present |
||
---|---|---|
.. | ||
builder | ||
derive | ||
derive_ui | ||
ui | ||
app.yml | ||
derive_ui.rs | ||
examples.rs | ||
macros.rs | ||
ui.rs | ||
yaml.rs |