aboutsummaryrefslogtreecommitdiff
path: root/bin/print
diff options
context:
space:
mode:
Diffstat (limited to 'bin/print')
-rwxr-xr-xbin/print14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/print b/bin/print
index f643edd..5aef102 100755
--- a/bin/print
+++ b/bin/print
@@ -94,15 +94,15 @@ main() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
@@ -111,10 +111,10 @@ QUALITY_SET=false
DUPLEX=
while getopts 'dq:h' flag; do
case "$flag" in
- d)
+ (d)
DUPLEX=1
;;
- q)
+ (q)
QUALITY_SET=true
case "$OPTARG" in
low)
@@ -132,12 +132,12 @@ while getopts 'dq:h' flag; do
;;
esac
;;
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
usage >&2
exit 2
;;