Skip to content

Commit

Permalink
Fix "--" being taken as a file name.
Browse files Browse the repository at this point in the history
Now it is only used as a flag to tell that the
following arguments are file paths.
  • Loading branch information
Arkaeriit committed Sep 18, 2022
1 parent 1417213 commit 53707dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rem.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func main() {
if i == 0 {
continue
}
if !ignoreArgs[i] {
if !ignoreArgs[i] && filepath != "--" {
trashFile(filePath)
}
}
Expand Down

0 comments on commit 53707dd

Please sign in to comment.