clap/src
Ed Page 21cc39678b fix(derive): Support WaitOnError for derive-genned errors
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.
2021-10-30 09:08:11 -05:00
..
build fix(derive): Support WaitOnError for derive-genned errors 2021-10-30 09:08:11 -05:00
output docs(app): Correlate help_heading and subcommand_placeholder 2021-10-26 16:21:02 -05:00
parse fix(derive): Support WaitOnError for derive-genned errors 2021-10-30 09:08:11 -05:00
util refactor(error): Delay formatting until the end 2021-10-26 14:26:50 -05:00
derive.rs fix(derive)!: Error, don't panic! 2021-10-26 14:26:50 -05:00
lib.rs chore: Silence bad clippy lint 2021-10-23 10:06:38 -05:00
macros.rs fix: Ease clap2->clap3 migration with deprecations 2021-10-15 14:19:16 -05:00
mkeymap.rs perf: Reduce allocations on 'args' 2021-10-18 16:14:31 -05:00