diff --git a/cluster-manager.sh b/cluster-manager.sh index e089c51..c95899e 100755 --- a/cluster-manager.sh +++ b/cluster-manager.sh @@ -103,11 +103,15 @@ HOSTLIST=( # OPTION PROCESSING # -OPTIONS=$(getopt -o s: -- $@) +OPTIONS=$(getopt -o s:h: -- $@) eval set -- $OPTIONS while true; do case "$1" in + -h) + IFS=',' read -a HOSTLIST <<< "$2" + shift 2 + ;; -s) SSH_USER="${2}@" shift 2 @@ -239,6 +243,7 @@ case "$ACTION" in echo " " echo "List of options:" echo " -s " + echo " -h " ;; *)