Skip to content

Commit

Permalink
Merge pull request #3 from Arkaeriit/fix_arg_check
Browse files Browse the repository at this point in the history
Fixed check of argument usability.
  • Loading branch information
quackduck committed May 31, 2022
2 parents 8ecaaf1 + 8ef9db8 commit 933d8eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rem.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ func main() {
}
// normal case
ensureTrashDir()
for i, filePath := range os.Args[1:] {
for i, filePath := range os.Args {
if i == 0 { continue }
if !ignoreArgs[i] {
trashFile(filePath)
}
Expand Down

0 comments on commit 933d8eb

Please sign in to comment.