clap/clap_generate
Roland Fredenhagen 5580e8c465
ArgValue builder (#2758)
* feat(arg_value): ArgValue can be used for possible_values

Through the ArgValue it is possible:

* `hide` possible_values from showing in completion, help and validation
* add `about` to possible_values in completion

* Resolved a few change-requests by epage

* make clippy happy

* add ArgValue::get_visible_value

* remove verbose destructering

* rename ArgValue::get_hidden to ArgValue::is_hidden

* add test for help output of hidden ArgValues

* Documentation for ArgValue

There is an issue that required to implement From<&ArgValue> for
ArgValue. We should probably find a solution without that.

* fix requested changes by epage

* fix formatting

* add deref in possible_values call to remove From<&&str>

* make clippy happy

* use copied() instad of map(|v|*v)

* Finishing up for merge, hopefully

* changes requested by pksunkara
2021-09-19 10:29:09 +00:00
..
examples ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
src ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
tests ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
Cargo.toml Pin clap_derive version (#2706) 2021-08-17 08:43:37 +00:00
README.md docs(generate): Improve jumping off points 2021-08-18 12:10:04 -05:00

clap_generate

Crates.io Crates.io License License

Generates completions (and other things) for clap based CLIs