clap
clap copied to clipboard
A full featured, fast Command Line Argument Parser for Rust
This is split out of #3732. This will help catch programming mistakes like with us erroring when an undefined argument is used.
### Please complete the following tasks - [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions) - [X] I have searched the existing issues ### Rust Version rustc 1.58.1 (db9d1b20b 2022-01-20) ### Clap...
Maintainer's notes: Below is the original issue that came from misusing clap's API. We could add a debug assert to help guide users to use the API correctly. --- ###...
Iiuc the value hint CommandWithArgs for zsh was incorrect when in a positional argument after the first positional argument. I updated the clap_complete/tests/common.rs:value_hint_command accordingly to generate a test case. The...
Maintainer's notes - We can use the field's `Default::default` with `#[clap(default_value_t)]` - Design work is needed for using the container's `Default::default` --- **Issue by [epage](https://github.com/epage)** _Thursday May 03, 2018 at...
This is a draft PR to represent what it would look like to port an existing project to using `{key}.workspace = true` in its workspace members.
I basically went through the reproducer from https://github.com/clap-rs/clap/issues/1596 and tried to narrow down which characters cause issues in: ``` fn main() { let values = (0u8..128u8) .map(|i| i as char)...
### 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.1.9 ### Describe your...
**Issue by [lucab](https://github.com/lucab)** _Monday Apr 01, 2019 at 10:40 GMT_ _Originally opened as https://github.com/TeXitoi/structopt/issues/175_ ---- I have a usecase where a bunch of structures are used by both `serde_derive` and...
### 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.54.0 ### Clap...