clap
clap copied to clipboard
A full featured, fast Command Line Argument Parser for Rust
### Feature Request Summary I would like to exclude some subcommands from the generated shell completion. For example, the command to generate those completions is usually only used during installation...
Maintainer's notes: Remaining work for feature parity - [x] Communicate with bash (#3656) - [x] Complete path `ValueHint`s (#3656) - [x] Complete possible values (#3656) - [x] Complete short flags...
We shouldn't offer hidden options by default but complete them if the user starts typing them See #3166 for more details on native completions - [code](https://github.com/clap-rs/clap/blob/master/clap_complete/src/dynamic.rs) - [tests](https://github.com/clap-rs/clap/blob/master/clap_complete/tests/dynamic.rs)
Before this patch when running into errors due to `args_conflicts_with_subcommands`, you'd get an output looking like this: ``` error: The subcommand 'auth' wasn't recognized Did you mean 'auth'? ``` This...
Maintainer's notes - Proposed fix is to add a `App::env_prefix` and `Arg::env_prefix` and is modeled after `help_heading` - `App::env_prefix`applies to all future `Arg`s and is set during `.arg()` - An...
Maintainer's notes - Deriving `Args` on an enum would create a `ArgGroup::new("T")::multiple(false)` - More builder methods can be accessed via `#[group(...)]` (split out as #4574) - We need to ensure...
### Please complete the following tasks - [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions) - [X] I have searched the [open](https://github.com/clap-rs/clap/issues) and [rejected](https://github.com/clap-rs/clap/issues?q=is%3Aissue+label%3AS-wont-fix+is%3Aclosed) issues ### Rust Version 1.60 ### Clap Version...
### Please complete the following tasks - [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions) - [X] I have searched the [open](https://github.com/clap-rs/clap/issues) and [rejected](https://github.com/clap-rs/clap/issues?q=is%3Aissue+label%3AS-wont-fix+is%3Aclosed) issues ### Clap Version 3.2.8 ### Describe your...
### Please complete the following tasks - [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions) - [X] I have searched the [open](https://github.com/clap-rs/clap/issues) and [rejected](https://github.com/clap-rs/clap/issues?q=is%3Aissue+label%3AS-wont-fix+is%3Aclosed) issues ### Rust Version rustc 1.62.0 (a8314ef7d 2022-06-27)...
Maintainer's notes We should document each solution (flag, subcommand, env var) and the trade offs. We should probably make env variable the default. --- ### Discussed in https://github.com/clap-rs/clap/discussions/3926 Originally posted...