aboutsummaryrefslogtreecommitdiff
path: root/bin/vm
diff options
context:
space:
mode:
Diffstat (limited to 'bin/vm')
-rwxr-xr-xbin/vm22
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/vm b/bin/vm
index f45fd47..b123ee5 100755
--- a/bin/vm
+++ b/bin/vm
@@ -95,15 +95,15 @@ help() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
@@ -120,31 +120,31 @@ while getopts 'Gi:m:np:Svh' flag; do
G)
GRAPHICS=true
;;
- i)
+ (i)
IMAGE="$OPTARG"
;;
- m)
+ (m)
MEMORY="$OPTARG"
;;
- n)
+ (n)
DRY_RUN=true
VERBOSE=true
;;
- p)
+ (p)
PORTMAPS="$PORTMAPS $OPTARG"
;;
S)
SNAPSHOT=false
;;
- v)
+ (v)
VERBOSE=true
;;
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
usage >&2
exit 2
;;
@@ -186,7 +186,7 @@ guess_arch() {
amd64)
printf 'x86_64'
;;
- *)
+ (*)
printf '%s' "$NAME"
;;
esac