aboutsummaryrefslogtreecommitdiff
path: root/bin/serve
diff options
context:
space:
mode:
Diffstat (limited to 'bin/serve')
-rwxr-xr-xbin/serve14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/serve b/bin/serve
index 25e8fe7..efece93 100755
--- a/bin/serve
+++ b/bin/serve
@@ -40,15 +40,15 @@ help() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
@@ -57,18 +57,18 @@ DIRECTORY='.'
PORT="$(free-port)"
while getopts 'd:p:h' flag; do
case "$flag" in
- d)
+ (d)
DIRECTORY="$OPTARG"
;;
- p)
+ (p)
PORT="$OPTARG"
;;
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
usage >&2
exit 2
;;