diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-03-11 06:59:03 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-03-11 06:59:03 +0100 |
commit | 2c9352db76bf2bbb32ccbe2dc2a929c8e65a453b (patch) | |
tree | a65b8ad89614ac6553859950ddecfce481a32d9a /bin | |
parent | 1918b1febae9add1edda2fe1b410617002b8afdc (diff) | |
download | debvm-2c9352db76bf2bbb32ccbe2dc2a929c8e65a453b.tar.gz |
debvm-run: --graphical should not require an argument
Diffstat (limited to 'bin')
-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)) |