clap/tests/builder
Ed Page c6664afe9d fix(parser): Track the most explicit value source
We were only tracking the last value source (default, env, cli, etc).
This works for args because they only come from one source.  Groups
however can come from multiple sources and this was making us treat a
group with a default value as being completely from defaults despite
some values maybe being from the commandline.

We now track the highest precedence value for a group.

Fixes #3330
2022-01-24 10:34:41 -06:00
..
app_from_crate.rs revert(help): Partial revert of 3c049b4 2021-12-15 10:36:59 -06:00
app_settings.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
arg_aliases.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
arg_aliases_short.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
arg_matcher_assertions.rs fix(parser): Fix more panic quotes 2022-01-04 16:10:26 -06:00
arg_settings.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
borrowed.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
cargo.rs revert(help): Partial revert of 3c049b4 2021-12-15 10:36:59 -06:00
conflicts.rs fix(parser): Track the most explicit value source 2022-01-24 10:34:41 -06:00
default_missing_vals.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
default_vals.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
delimiters.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
derive_order.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
display_order.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
double_require.rs style: remove 'from_string' call from 'format' args 2022-01-04 09:20:14 -06:00
empty_values.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
env.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
error.rs fix(error): Ensure newline on value_of_t not found 2021-12-13 13:30:32 -06:00
flag_subcommands.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
flags.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
global_args.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
grouped_values.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
groups.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
help.rs fix: Don't panic when propagating 2022-01-18 14:38:58 -06:00
help_env.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
hidden_args.rs revert(help): Partial revert of 3c049b4 2021-12-15 10:36:59 -06:00
ignore_errors.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
indices.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
main.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
multiple_occurrences.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
multiple_values.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
opts.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
positionals.rs fix(parser): Ignore Last when checking Hyphe Values 2022-01-04 09:16:03 -06:00
posix_compatible.rs fix: Remove overriden occurrences as we go 2021-12-27 15:32:37 -06:00
possible_values.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
propagate_globals.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
regex.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
require.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
subcommands.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
template_help.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
tests.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
unicode.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
unique_args.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
utf8.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
utf16.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
utils.rs style: prefer 'char' to 'str' for single character patterns 2022-01-04 09:20:08 -06:00
validators.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
version.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00