Skip to content

Commit

Permalink
Auto merge of #10333 - samueltardieu:lintcheck-clap-panic, r=flip1995
Browse files Browse the repository at this point in the history
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/gh.neting.cc-1ecc6299db9ec823/clap-4.1.4/src/builder/debug_asserts.rs:82:13
```

changelog: none
<!-- changelog_checked -->
  • Loading branch information
bors committed Feb 12, 2023
2 parents d880cae + aeaa1cc commit ad2135e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lintcheck/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn get_clap_config() -> ArgMatches {
.long("markdown")
.help("Change the reports table to use markdown links"),
Arg::new("recursive")
.long("--recursive")
.long("recursive")
.help("Run clippy on the dependencies of crates specified in crates-toml")
.conflicts_with("threads")
.conflicts_with("fix"),
Expand Down

0 comments on commit ad2135e

Please sign in to comment.