aboutsummaryrefslogtreecommitdiff
path: root/bin/color
diff options
context:
space:
mode:
Diffstat (limited to 'bin/color')
-rwxr-xr-xbin/color12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/color b/bin/color
index a416079..6bbf146 100755
--- a/bin/color
+++ b/bin/color
@@ -169,15 +169,15 @@ list_colors() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
@@ -185,7 +185,7 @@ done
COLOR_FN=''
while getopts 'c:h' flag; do
case "$flag" in
- c)
+ (c)
EXISTS=false
for c in $COLOR_LIST; do
if [ "$OPTARG" = "$c" ]; then
@@ -199,12 +199,12 @@ while getopts 'c:h' flag; do
fi
COLOR_FN="$OPTARG"
;;
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
usage >&2
exit 2
;;