summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-03-11 06:59:03 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-03-11 06:59:03 +0100
commit2c9352db76bf2bbb32ccbe2dc2a929c8e65a453b (patch)
treea65b8ad89614ac6553859950ddecfce481a32d9a /bin
parent1918b1febae9add1edda2fe1b410617002b8afdc (diff)
downloaddebvm-2c9352db76bf2bbb32ccbe2dc2a929c8e65a453b.tar.gz
debvm-run: --graphical should not require an argument
Diffstat (limited to 'bin')
-rwxr-xr-xbin/debvm-run5
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))