diff --git a/dotfiles/bin/secretfiles b/dotfiles/bin/secretfiles index f625511..ae22c41 100755 --- a/dotfiles/bin/secretfiles +++ b/dotfiles/bin/secretfiles @@ -233,7 +233,7 @@ LONGOPTS=passbase:,file:,help,identity:,key:,output:,path: # -temporarily store output to be able to check for errors # -activate quoting/enhanced mode (e.g. by writing out “--options”) # -pass arguments only via -- "$@" to separate them correctly -! PARSED=$(getopt --options=${OPTIONS} --longoptions=${LONGOPTS} --name "$(basename ${0})" -- "${@}") +! PARSED=$(getopt --options=${OPTIONS} --longoptions=${LONGOPTS} --name "$(basename ${0})" -- "${@:--h}") if [[ ${PIPESTATUS[0]} -ne 0 ]]; then # e.g. return value is 1 # then getopt has complained about wrong arguments to stdout