We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83fa8f8 commit b9b12d4Copy full SHA for b9b12d4
src/main.rs
@@ -47,7 +47,7 @@ pub fn main() {
47
// if we run "cargo clippy" (as cargo subcommand), we have to strip "cargo clippy" (first 2 args)
48
// but if we are run via "..../target/debug/cargo-clippy", only ommit the first arg, the second one
49
// might be a normal cmdline arg already (which we don't want to ommit)
50
- let args = if let Some(first_arg) = env::args().next() && first_arg.ends_with("cargo-clippy") {
+ let args = if let Some(first_arg) = env::args().next() && (first_arg.ends_with("cargo-clippy") || first_arg.ends_with("cargo-clippy.exe")) {
51
env::args().skip(1)
52
} else {
53
env::args().skip(2)
0 commit comments