Compare commits

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