clap/tests/builder
Ed Page b7d13dfb88 fix(parser): Prefer invalid subcommands over invalid args
Just having `--help` or `--version` can make us get invalid args instead
of invalid subcommands.   It doesn't make sense to do this unless
positionals are used.  Even then it might not make sense but this is at
least a step in the right direction.

Unsure how I feel about this being backported to clap 3.  It most likely
would be fine?

This was noticed while looking into #4218
2022-09-15 10:30:03 -05:00
..
action.rs fix!: Require/default conditional APIs are more explicit 2022-08-16 11:52:10 -05:00
app_settings.rs fix(parser): Prefer invalid subcommands over invalid args 2022-09-15 10:30:03 -05:00
arg_aliases.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
arg_aliases_short.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
arg_matches.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
borrowed.rs docs: Update App references to Command 2022-02-14 15:33:49 -06:00
cargo.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
command.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
conflicts.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
default_missing_vals.rs fix(help): Consistently use [] for positionals 2022-08-29 15:34:30 -05:00
default_vals.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
delimiters.rs fix!: Rename Arg::number_of_values to Arg::num_args 2022-08-03 14:45:47 -05:00
derive_order.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
display_order.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
double_require.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
empty_values.rs fix(help): Collapse usage to one line 2022-09-07 11:03:57 -05:00
env.rs fix: Replace Arg::env with Arg::env_os 2022-09-13 14:55:12 -05:00
error.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
flag_subcommands.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
flags.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
global_args.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
grouped_values.rs fix!: Rename Arg::number_of_values to Arg::num_args 2022-08-03 14:45:47 -05:00
groups.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
help.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
help_env.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
hidden_args.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
ignore_errors.rs docs: Shift focus from takes_value to actions 2022-07-26 14:50:51 -05:00
indices.rs fix!: Rename Arg::number_of_values to Arg::num_args 2022-08-03 14:45:47 -05:00
main.rs fix: Switch to owned types 2022-08-22 14:55:55 -05:00
multiple_occurrences.rs fix!: Replace takes_value with number_of_values 2022-08-04 09:39:25 -05:00
multiple_values.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
opts.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
positionals.rs fix(help): Collapse usage to one line 2022-09-07 11:03:57 -05:00
posix_compatible.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
possible_values.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
propagate_globals.rs fix: Switch to owned types 2022-08-22 14:55:55 -05:00
require.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
subcommands.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
template_help.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
tests.rs feat: Open the door for user styling in the future 2022-08-24 18:17:42 -05:00
unicode.rs docs: Shift focus from takes_value to actions 2022-07-26 14:50:51 -05:00
unique_args.rs docs: Update App references to Command 2022-02-14 15:33:49 -06:00
utf8.rs style: Address clippy 2022-08-11 16:07:58 -05:00
utf16.rs fix(parser): Deprecate ArgMatches::is_present 2022-06-10 14:21:25 -05:00
utils.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
version.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00