diff options
| author | bors <bors@rust-lang.org> | 2023-02-12 18:52:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-12 18:52:47 +0000 |
| commit | ad2135e5a1bdc44e294c7c76f25c69b12d3d408f (patch) | |
| tree | bd51d659b46ad55bcbc16e48408450fa86fd4531 | |
| parent | d880cae0b5d5b57dc41366644f9fc3162be6bdcb (diff) | |
| parent | aeaa1cc342415ae0953a74fc4ac1ee76e48ed2ea (diff) | |
| download | rust-ad2135e5a1bdc44e294c7c76f25c69b12d3d408f.tar.gz rust-ad2135e5a1bdc44e294c7c76f25c69b12d3d408f.zip | |
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 -->
| -rw-r--r-- | lintcheck/src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lintcheck/src/config.rs b/lintcheck/src/config.rs index b8824024e6c..e0244ddcecb 100644 --- a/lintcheck/src/config.rs +++ b/lintcheck/src/config.rs @@ -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"), |
