aboutsummaryrefslogtreecommitdiff
path: root/bin/highlight
diff options
context:
space:
mode:
Diffstat (limited to 'bin/highlight')
-rwxr-xr-xbin/highlight16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/highlight b/bin/highlight
index 70cf5ff..cefd37d 100755
--- a/bin/highlight
+++ b/bin/highlight
@@ -40,36 +40,36 @@ help() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
while getopts 'n:e:f:h' flag; do
case "$flag" in
- n)
+ (n)
LINE_NUMBER="$OPTARG"
;;
- e)
+ (e)
PATTERN="$OPTARG"
;;
- f)
+ (f)
FILENAME="$OPTARG"
;;
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
usage >&2
exit 2
;;