clap/examples
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
..
01a_quick_example.rs fix(style): remove unnecessary usages of 'static and ref 2021-08-02 23:05:21 +02:00
01b_quick_example.rs fix(style): remove unnecessary usages of 'static and ref 2021-08-02 23:05:21 +02:00
01c_quick_example.rs Automatically read license field from Cargo.toml 2020-12-09 00:16:19 +01:00
02_apps.rs Automatically read license field from Cargo.toml 2020-12-09 00:16:19 +01:00
03_args.rs the word "Subcommand" was accidentally removed 2021-06-11 22:41:37 +02:00
04_using_matches.rs Automatically read license field from Cargo.toml 2020-12-09 00:16:19 +01:00
05_flag_args.rs Removed Arg::multiple 2021-06-16 07:17:11 +01:00
06_positional_args.rs Make all examples compile & run without failure. 2020-08-23 11:23:43 -07:00
07_option_args.rs Removed Arg::multiple 2021-06-16 07:17:11 +01:00
08_subcommands.rs fix(style): remove unnecessary usages of 'static and ref 2021-08-02 23:05:21 +02:00
09_auto_version.rs Remove #[macro_use] from examples 2020-02-03 12:01:36 -05:00
10_default_values.rs Fix minor typos in 10_default_values.rs 2021-04-01 17:41:17 -04:00
11_only_specific_values.rs ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
12_typed_values.rs Replace value_t*! macros with methods 2020-04-13 04:20:09 +03:00
13_enum_values.rs ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
14_groups.rs Make all examples compile & run without failure. 2020-08-23 11:23:43 -07:00
15_custom_validator.rs fix(example): Use correct type in comment 2021-07-28 10:34:48 -05:00
16_app_settings.rs Remove Arg::settings to be consistent with App 2021-02-12 10:42:38 +00:00
17_yaml.rs style: replacing yml with yaml for consistency 2020-07-20 20:58:34 -03:00
17_yaml.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
18_builder_macro.rs fix(style): remove unnecessary usages of 'static and ref 2021-08-02 23:05:21 +02:00
19_auto_authors.rs Remove #[macro_use] from examples 2020-02-03 12:01:36 -05:00
20_subcommands.rs Removed Arg::multiple 2021-06-16 07:17:11 +01:00
21_aliases.rs fix(style): remove unnecessary usages of 'static and ref 2021-08-02 23:05:21 +02:00
22_stop_parsing_with_--.rs docs(example): clarify stop_parsing_with_-- 2021-08-03 13:41:54 +02:00
23_flag_subcommands_pacman.rs Removed Arg::multiple 2021-06-16 07:17:11 +01:00