diff --git a/trm.sh b/trm.sh index 5e6c56e..f1ed181 100755 --- a/trm.sh +++ b/trm.sh @@ -15,9 +15,9 @@ # Parse command line args - OPERATOR="mv" # Can be overriden with -c option - OPTLIST='cdtsv' # List of all legal command line options - OPTIND=1 # getopts may have been previously used in this context + OPERATOR="mv" # Can be overriden with -c option + OPTLIST='cdg:tsv' # List of all legal command line options + OPTIND=1 # getopts may have been previously used in this context TESTMODE="" VERBOSE="" @@ -36,6 +36,11 @@ rm -rf ${VERBOSE} ${GRAVEYARD}/* ${GRAVEYARD}/.[-z]* ;; + # Name your own graveyard + g) + GRAVEYARD=${OPTARG} + ;; + # Expand symlinks s) SYMEXPAND="symexpand"