Skip to content

Commit 72a5201

Browse files
committed
account for windows .exe
1 parent c2fb788 commit 72a5201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn main() {
7171
// if we run "cargo clippy" (as cargo subcommand), we have to strip "cargo clippy" (first 2 args)
7272
// but if we are run via "..../target/debug/cargo-clippy", only ommit the first arg, the second one
7373
// might be a normal cmdline arg already (which we don't want to ommit)
74-
let args = if let Some(first_arg) = env::args().next() && first_arg.ends_with("cargo-clippy") {
74+
let args = if let Some(first_arg) = env::args().next() && (first_arg.ends_with("cargo-clippy") || first_arg.ends_with("cargo-clippy.exe")) {
7575
env::args().skip(1)
7676
} else {
7777
env::args().skip(2)

0 commit comments

Comments
 (0)