File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,22 @@ cmdline() {
438438 exit 1
439439 fi
440440 ;;
441+ status-* )
442+ if [[ -n ${! OPTIND-} ]]; then
443+ readonly STATUSMETHOD=${OPTION}
444+ local MULTIOPT
445+ MULTIOPT=(" $OPTARG " )
446+ until [[ -z ${! OPTIND-} || ${! OPTIND} =~ ^-.* ]]; do
447+ MULTIOPT+=(" ${! OPTIND} " )
448+ OPTIND=$(( OPTIND + 1 ))
449+ done
450+ STATUS=$( printf " %s " " ${MULTIOPT[@]} " | xargs)
451+ readonly STATUS
452+ else
453+ error " ${OPTION} requires an option."
454+ exit 1
455+ fi
456+ ;;
441457 status)
442458 if [[ -n ${! OPTIND-} ]]; then
443459 OPTARG=" ${! OPTIND} "
@@ -460,9 +476,6 @@ cmdline() {
460476 exit 1
461477 fi
462478 ;;
463- status-* )
464- readonly STATUSMETHOD=${OPTION}
465- ;;
466479 test)
467480 if [[ -n ${! OPTIND-} ]]; then
468481 OPTARG=" ${! OPTIND} "
You can’t perform that action at this time.
0 commit comments