From 2c9352db76bf2bbb32ccbe2dc2a929c8e65a453b Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 11 Mar 2023 06:59:03 +0100 Subject: debvm-run: --graphical should not require an argument --- bin/debvm-run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') 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)) -- cgit v1.2.3