diff options
-rwxr-xr-x | bin/debvm-run | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/debvm-run b/bin/debvm-run index e45f350..7da7cd0 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -142,7 +142,10 @@ while getopts :gi:s:-: OPTCHAR; do help) usage ;; - graphical|image|sshport) + graphical) + "opt_$OPTARG" + ;; + image|sshport) test "$OPTIND" -gt "$#" && usage_error "missing argument for --$OPTARG" "opt_$OPTARG" "$(nth_arg "$OPTIND" "$@")" OPTIND=$((OPTIND+1)) |