Skip to content

Commit

Permalink
Remove explicit mentions of ignored flag in help.
Browse files Browse the repository at this point in the history
This makes the message cleaner.
  • Loading branch information
Arkaeriit committed Sep 23, 2022
1 parent 356d5e7 commit 1aa8041
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rem.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ Options:
used for compatibility with rm
-h/--help print this help message
--version print Rem version
-i/--interactive ignored, used for compatibility with rm
-r/-R/--recursive ignored, used for compatibility with rm
-v/--verbose ignored, used for compatibility with rm
-- all arguments after this as considered files`
-- all arguments after this as considered files
Rem ignores flags used by GNU rm such as -i, -r, or -v. If you want to
trash files that look like flags, put them after "--" to be on the safe
side of things.`
dataDir string
logFileName = ".trash.log"
logFile map[string]string
Expand Down Expand Up @@ -146,6 +147,9 @@ func main() {
if hasOption, i := argsHaveOption("interactive", "i"); hasOption {
ignoreArgs[i] = true
}
if hasOption, i := argsHaveOption("one-file-system", "I"); hasOption {
ignoreArgs[i] = true
}
if hasOption, i := argsHaveOption("recursive", "r"); hasOption {
ignoreArgs[i] = true
}
Expand Down

0 comments on commit 1aa8041

Please sign in to comment.