Skip to content

Commit ad2135e

Browse files
committed
Auto merge of #10333 - samueltardieu:lintcheck-clap-panic, r=flip1995
lintcheck: fix clap panic clap 4.1.4 panics if `-` is used at the start of an argument: ``` $ cargo lintcheck […] thread 'main' panicked at 'Argument recursive: long "--recursive" must not start with a `-`, that will be handled by the parser', /home/sam/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-4.1.4/src/builder/debug_asserts.rs:82:13 ``` changelog: none <!-- changelog_checked -->
2 parents d880cae + aeaa1cc commit ad2135e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lintcheck/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn get_clap_config() -> ArgMatches {
3535
.long("markdown")
3636
.help("Change the reports table to use markdown links"),
3737
Arg::new("recursive")
38-
.long("--recursive")
38+
.long("recursive")
3939
.help("Run clippy on the dependencies of crates specified in crates-toml")
4040
.conflicts_with("threads")
4141
.conflicts_with("fix"),

0 commit comments

Comments
 (0)