clap/clap_complete_fig
Ed Page f70ebe89a7 fix!: Require explicit help/version disabling
Before we introduced actions, it required specific setups to engage with
claps version and help printing.  With actions making that more
explicit, we don't get as much benefit from our multiple, obscure, ways
of users customizing help

Before
- Modify existing help or version with `mut_arg` which would
  automatically be pushed down the command tree like `global(true)`
- Create an new help or version and have it treated as if it was the
  built-in on (I think)
- Use the same flags as built-in and have the built-in flags
  automatically disabled
- Users could explicitly disable the built-in functionality and do what
  they want

Now
- `mut_arg` no longer works as we define help and version flags at the
  end
- If someone defines a flag that overlaps with the built-ins by id,
  long, or short, a debug assert will tell them to explicitly disable
  the built-in
- Any customization has to be done by a user providing their own.  To
  propagate through the command tree, they need to set `global(true)`.

Benefits
- Hopefully, this makes it less confusing on how to override help
  behavior.  Someone creates an arg and we then tell them how to disable
  the built-in
- This greatly simplifies the arg handling by pushing more
  responsibility onto the developer in what are hopefully just corner
  cases
- This removes about 1Kb from .text

Fixes #3405
Fixes #4033
2022-08-10 20:33:21 -05:00
..
examples refactor: Update app variables to cmd 2022-02-14 15:55:56 -06:00
src style: Make clippy happy 2022-08-10 11:41:27 -05:00
tests fix!: Require explicit help/version disabling 2022-08-10 20:33:21 -05:00
Cargo.toml chore: Update version 2022-07-23 21:43:37 -05:00
CHANGELOG.md chore: Release 2022-07-01 19:48:03 -05:00
LICENSE-APACHE fix(complete): Give crates more specific names 2021-12-31 12:03:29 -06:00
LICENSE-MIT docs(license): Update years/holders 2022-06-27 12:55:09 -05:00
README.md fix(complete): Give crates more specific names 2021-12-31 12:03:29 -06:00

clap_complete_fig

Generates Fig completions for clap based CLIs