aboutsummaryrefslogtreecommitdiff
path: root/bin/htmlesc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/htmlesc')
-rwxr-xr-xbin/htmlesc14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/htmlesc b/bin/htmlesc
index 436ed54..5f3694f 100755
--- a/bin/htmlesc
+++ b/bin/htmlesc
@@ -43,15 +43,15 @@ help() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
@@ -60,18 +60,18 @@ ENCODE=false
DECODE=false
while getopts 'edh' flag; do
case "$flag" in
- e)
+ (e)
ENCODE=true
;;
- d)
+ (d)
DECODE=true
;;
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
usage >&2
exit 2
;;