aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/getip14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/getip b/bin/getip
index c351d4f..fe400b4 100755
--- a/bin/getip
+++ b/bin/getip
@@ -33,15 +33,15 @@ help() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
@@ -49,18 +49,18 @@ done
V=6
while getopts '46h' flag; do
case "$flag" in
- 4)
+ (4)
V=4
;;
- 6)
+ (6)
V=6
;;
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
usage >&2
exit 2
;;