clap/tests/builder
Ed Page 06d43a02da fix(help): Subcommand help looks like --help
Like was said in #2435, this is what people would expect.

While we should note this in a compatibility section in the changelog, I
do not consider this a breaking change since we should be free to adjust
the help output as needed.  We are cautious when people might build up
their own content around it (like #3312) but apps should already handle
this with `--help` so this shouldn't be a major change.

We aren't offering a way for people to disable this, assuming people
won't need to.  Longer term, we are looking at support "Actions" (#3405)
and expect those to help customize the flags.  We'll need something
similar for the `help` subcommand.

Fixes #3440
2022-02-11 12:47:34 -06:00
..
app_from_crate.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
app_settings.rs fix(help): Subcommand help looks like --help 2022-02-11 12:47:34 -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 fix: Deprecate various APIs 2022-02-10 19:37:47 -06:00
borrowed.rs test: Show more detailed failures 2021-12-27 13:57:38 -06:00
cargo.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
conflicts.rs test(validate): Ensure defaults are ignored 2022-02-08 12:27:40 -06:00
default_missing_vals.rs fix(assert): Report invalid defaults in debug asserts 2022-02-08 14:41:33 -06:00
default_vals.rs fix(assert): Report invalid defaults in debug asserts 2022-02-08 14:41:33 -06:00
delimiters.rs feat: Add Arg getters for all settings 2022-02-10 10:18:41 -06:00
derive_order.rs feat: Allow disabling derive display order 2022-02-07 19:19:11 -06:00
display_order.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
double_require.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
empty_values.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
env.rs feat: Add Arg getters for all settings 2022-02-10 10:18:41 -06:00
error.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
flag_subcommands.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
flags.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
global_args.rs fix: Detect deeply recursed global args 2022-02-09 16:05:27 -06:00
grouped_values.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
groups.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
help.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
help_env.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
hidden_args.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
ignore_errors.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
indices.rs feat: Add Arg getters for all settings 2022-02-10 10:18:41 -06:00
main.rs test: Consolidate builder tests 2021-11-30 10:07:05 -06:00
multiple_occurrences.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
multiple_values.rs feat: Add Arg getters for all settings 2022-02-10 10:18:41 -06:00
opts.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
positionals.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00
posix_compatible.rs feat: Add Arg getters for all settings 2022-02-10 10:18:41 -06:00
possible_values.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
propagate_globals.rs test: Panic, rather than exit, on error 2021-12-27 12:56:15 -06:00
regex.rs refactor(error): Switch to error::ErrorKind 2022-02-02 15:41:24 -06:00
require.rs test(validate): Ensure defaults are ignored 2022-02-08 12:27:40 -06:00
subcommands.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -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 feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -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 feat(error: Expose value-validation context 2022-02-04 14:35:52 -06:00
version.rs feat: Replace core set of AppSettings with functions 2022-02-11 12:35:09 -06:00