clap/tests/builder
Ed Page 06aa418fa6 fix(error): Be more accurate in smart usage
For some errors, we use the unroll logic to get the list of required
arguments.  The usage then does the same, but without a matcher.  This
was causing the lists to not match.

As a side effect, this fixed an ordering issue where we were putting the
present arg after the not-present arg.  I assume its because we ended up
reporting the items twice but the first time is correctly ordered and
gets precedence.

This was split out of #3020
2022-02-02 13:30:23 -06:00
..
app_from_crate.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
app_settings.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -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 refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
conflicts.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
default_missing_vals.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
default_vals.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -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 fix(error): Be more accurate in smart usage 2022-02-02 13:30:23 -06:00
empty_values.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
env.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
error.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
flag_subcommands.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
flags.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -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 refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
help.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -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 refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
multiple_values.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
opts.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
positionals.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
posix_compatible.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
possible_values.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
propagate_globals.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
regex.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
require.rs fix(error): Be more accurate in smart usage 2022-02-02 13:30:23 -06:00
subcommands.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -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 refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00
utf16.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
utils.rs fix(help): Optional arg values in brackets 2022-01-26 12:03:23 -05:00
validators.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
version.rs refactor: Migrate off of .kind 2022-02-01 11:27:08 -06:00