utils upgrade
This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
|
||||
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
|
||||
cat <<EOF
|
||||
Usage: $(basename "$0") [-h] <files...>
|
||||
|
||||
Move files to trash using gio.
|
||||
|
||||
Options:
|
||||
-h, --help Show this help message
|
||||
|
||||
Arguments:
|
||||
files Files or directories to move to trash
|
||||
|
||||
EOF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
gio trash "$@"
|
||||
|
||||
Reference in New Issue
Block a user