clap/tests/derive
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
..
app_name.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
arguments.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
author_version_about.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
basic.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
boxed.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
custom_string_parsers.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
default_value.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
deny_warnings.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
doc_comments_help.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
explicit_name_no_renaming.rs fix(derive): Deprecate using name for Args 2022-09-02 19:57:37 -05:00
flags.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
flatten.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
generic.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
groups.rs feat(derive): Reserve the T group name 2022-09-13 07:44:36 -05:00
help.rs fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
issues.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
macros.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
main.rs feat(derive): Reserve the T group name 2022-09-13 07:44:36 -05:00
naming.rs feat(derive): Reserve the T group name 2022-09-13 07:44:36 -05:00
nested_subcommands.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
non_literal_attributes.rs fix(derive): Deprecate Command::allow_hyphen_values 2022-09-06 20:50:09 -05:00
options.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
privacy.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
raw_bool_literal.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
raw_idents.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
rename_all_env.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
skip.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
subcommands.rs fix(parser): Prefer invalid subcommands over invalid args 2022-09-15 10:30:03 -05:00
type_alias_regressions.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
utf8.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
utils.rs fix(help): Collapse usage to one line 2022-09-07 11:03:57 -05:00
value_enum.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00