aboutsummaryrefslogtreecommitdiff
path: root/bin/open
diff options
context:
space:
mode:
Diffstat (limited to 'bin/open')
-rwxr-xr-xbin/open12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/open b/bin/open
index 4dc56db..23c579c 100755
--- a/bin/open
+++ b/bin/open
@@ -38,27 +38,27 @@ help() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
while getopts 'h' flag; do
case "$flag" in
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
usage >&2
exit 2
;;
@@ -103,7 +103,7 @@ for f in "$@"; do
mailto:*)
alot compose "$f"
;;
- *)
+ (*)
DIR="$(cd -- "$(dirname -- "$0")"; pwd)"
CMD="$(without-env PATH "$DIR" -- command -v xdg-open)"
"$CMD" "$f"