clap/tests
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
..
fixtures fix(yaml): Don't panic on multiple groups 2021-08-18 15:16:44 -05:00
app_from_crate.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
app_settings.rs ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
arg_aliases.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
arg_aliases_short.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
borrowed.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
cargo.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
conflicts.rs fix(usage): Move positional args to end of usage string (#2492) 2021-05-21 00:29:21 +05:30
default_missing_vals.rs fix(style): allow bool_assert_comparison in default_missing_value_flag_value 2021-08-02 23:10:51 +02:00
default_vals.rs ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
delimiters.rs Removed Arg::multiple 2021-06-16 07:17:11 +01:00
derive_order.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
display_order.rs Add test for very large display_order values and a possible fix. 2021-09-16 19:11:30 -07:00
double_require.rs Fix bug with duplicate error messages 2021-09-17 10:47:06 -04:00
empty_values.rs Rename NoEmptyValues to ForbidEmptyValues 2021-03-13 12:05:34 +05:30
env.rs Add env feature gate 2021-08-14 01:55:05 +01:00
examples.rs fix(yaml): Don't panic on multiple groups 2021-08-18 15:16:44 -05:00
flag_subcommands.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
flags.rs fix(test): fix typo in flag_using_long_with_literals 2021-08-01 12:19:00 +02:00
global_args.rs Removed Arg::multiple 2021-06-16 07:17:11 +01:00
grouped_values.rs Forbid multiple_occurrences for positional args 2021-06-16 08:27:04 +01:00
groups.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
help.rs ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
help_env.rs Remove TakesValue restriction for HideEnv* 2021-08-15 19:40:24 +01:00
hidden_args.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
ignore_errors.rs setting: IgnoreErrors - Reaction to review comments 2021-06-14 10:26:23 +02:00
indices.rs Removed Arg::multiple 2021-06-16 07:17:11 +01:00
macros.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
multiple_occurrences.rs Add env feature gate 2021-08-14 01:55:05 +01:00
multiple_values.rs Fix value_names & num_vals interaction 2021-08-14 01:08:44 +01:00
opts.rs infer long arguments 2021-06-05 13:18:06 +02:00
positionals.rs Forbid multiple_occurrences for positional args 2021-06-16 08:27:04 +01:00
posix_compatible.rs Make overrides_with working when MultipleValues is enabled. 2021-08-14 16:34:26 +08:00
possible_values.rs ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
propagate_globals.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
require.rs ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
subcommands.rs Don't suggest help or --help when not applicable (#2749) 2021-09-04 20:10:24 +00:00
template_help.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
tests.rs ArgMacthes::is_present should not deal with subcommands at all, fixes #2494 2021-05-26 00:40:38 +01:00
unique_args.rs Fix warnings 2020-05-31 17:53:24 +03:00
utf8.rs fix: Provide path to avoid UTF-8 panics 2021-08-18 14:15:18 -05:00
utf16.rs fix: Provide path to avoid UTF-8 panics 2021-08-18 14:15:18 -05:00
utils.rs ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
validators.rs Refactor coloring 2020-08-28 19:21:05 +03:00
version-numbers.rs Remove #[macro_use] from tests 2020-02-03 12:01:36 -05:00
version.rs Replace "Prints" with "Print" for default help and version commands 2021-07-29 20:23:25 -07:00
yaml.rs fix(yaml): Don't panic on multiple groups 2021-08-18 15:16:44 -05:00