From f6ff4addb3446bde79a1dfdf5a3a3c127281d7f3 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Sun, 19 Sep 2021 18:11:21 +0200 Subject: [PATCH] Removed -? as a flag to print the help message because it caused some problems in zsh --- volumectl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/volumectl b/volumectl index 3afcb41..ea1b5ca 100755 --- a/volumectl +++ b/volumectl @@ -240,7 +240,7 @@ Optional arguments: -c , --config instead of reading from the default location ($CONFIG_PATH), read from the path given -v, --verbose print each step the script passes through - -h, -?, --help show this message + -h, --help show this message EOF } @@ -259,8 +259,8 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then #if '__name__' == '__main__' verbose && echo "Setting \$CONFIG_PATH to $2 (\$CONFIG_PATH=$CONFIG_PATH)" shift 2 ;; - -h|-\?|--help) - verbose && echo "Detected -h, -? or --help" + -h|--help) + verbose && echo "Detected -h or --help" usage exit ;;