mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
21cc39678b
Before, `Error::exit` didn't provide `WaitOnError`, requiring each call site to duplicate half of `Error::exit`s behavior to get it. This hadn't been done for errors raised by derive-generated code. Ideally, these errors never happen but all the same, having this consistent would be good. This moves knowledge of `WaitOnError` to `Error` (including through `Error::format`) so `Error::exit` can wait. Now all of the callers to `.exit` get a consistent experience without duplication. While #2938 made a lot of `Error` fields optional for less churn-heavy modifications, I made this new field required to minimize the risk of an raise site forgetting to set it. |
||
---|---|---|
.. | ||
build | ||
output | ||
parse | ||
util | ||
derive.rs | ||
lib.rs | ||
macros.rs | ||
mkeymap.rs |