Compare commits

..
1 Commits
Author SHA1 Message Date
Riyyi def4f46628 Manager: Improve option handling using GNU getopt 2021-08-19 02:04:43 +02:00
+1 -1
View File
@@ -186,7 +186,7 @@ packages() {
# --------------------------------------
script="$(basename "$0")"
options="$(getopt --options "ha:fp:ls" --longoptions "help,add:,files,packages:,pull,push" -n "$script" -- "$@" 2>&1)"
options="$(getopt --options "ha:fp:ls" --longoptions "help,add:,files,packages:,pull,push" -n "test.sh" -- "$@" 2>&1)"
result="$?"
# Exit if invalid option is provided