No description
Find a file
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
.github chore: Set permissions 2022-08-28 01:50:11 +03:00
assets docs: Add back in logo 2021-12-07 17:45:57 -06:00
clap_bench fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
clap_complete fix: Tests/clippy/errors bash dynamic completion 2022-09-07 20:25:06 -05:00
clap_complete_fig fix: Deprecate Command::trailing_var_arg 2022-09-06 19:41:17 -05:00
clap_derive feat(derive): Reserve the T group name 2022-09-13 07:44:36 -05:00
clap_lex fix: Switch to owned types 2022-08-22 14:55:55 -05:00
clap_mangen fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
examples fix(parser): Prefer invalid subcommands over invalid args 2022-09-15 10:30:03 -05:00
src fix(parser): Prefer invalid subcommands over invalid args 2022-09-15 10:30:03 -05:00
tests fix(parser): Prefer invalid subcommands over invalid args 2022-09-15 10:30:03 -05:00
.clippy.toml chore: Bump MSRV to 1.60.0 2022-08-10 21:32:06 -05:00
.gitignore chore: Allow testing MSRV 2022-07-19 13:50:27 -05:00
.pre-commit-config.yaml chore: Upgrade boilerplate 2022-02-15 12:36:19 -06:00
Cargo.lock chore: Update dependencies 2022-09-01 07:09:32 -05:00
Cargo.toml chore: Update dependencies 2022-09-01 07:09:32 -05:00
CHANGELOG.md fix(parser): Prefer invalid subcommands over invalid args 2022-09-15 10:30:03 -05:00
committed.toml chore: Align on boilerplate 2021-11-17 15:24:50 -06:00
CONTRIBUTING.md docs: Specify that we will support prior major versions 2022-09-07 19:12:01 -05:00
LICENSE-APACHE chore: relicense under MIT and APACHE 2.0 2018-07-23 14:25:18 -04:00
LICENSE-MIT docs(license): Update years/holders 2022-06-27 12:55:09 -05:00
Makefile fix: Tests/clippy/errors bash dynamic completion 2022-09-07 20:25:06 -05:00
README.md chore: Update release process 2022-07-19 14:41:42 -05:00
release.toml chore: Allow releasing from release branches 2022-07-25 13:31:25 -05:00
typos.toml docs: Fix typos 2021-11-17 15:21:58 -06:00

clap

Command Line Argument Parser for Rust

Crates.io Crates.io License License Build Status Coverage Status Contributors

Dual-licensed under Apache 2.0 or MIT.

About

Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.

For more details, see:

Sponsors

Gold

Silver

Bronze

Backer