summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-09-27 14:08:48 +0200
committerLeah Neukirchen <leah@vuxu.org>2018-09-27 14:10:35 +0200
commitc04d2edd08bfb442068a6956f0a1e52d9d70c9cb (patch)
tree7dffb09d9b2e553020d55053eee2171c6ed4205e
parent67e0beb56b3dc9bea6ca8dd0c390a107e9668768 (diff)
downloadmblaze-c04d2edd08bfb442068a6956f0a1e52d9d70c9cb.tar.gz
mblaze-c04d2edd08bfb442068a6956f0a1e52d9d70c9cb.tar.xz
mblaze-c04d2edd08bfb442068a6956f0a1e52d9d70c9cb.zip
contrib/msearch: -- handling is builtin
-rwxr-xr-xcontrib/msearch5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/msearch b/contrib/msearch
index 6272512..f231ead 100755
--- a/contrib/msearch
+++ b/contrib/msearch
@@ -3,7 +3,7 @@
 MBLAZE=${MBLAZE:-$HOME/.mblaze}
 engine=$(mhdr -h search-engine "$MBLAZE/profile")
 
-while getopts nmx- opt; do
+while getopts nmx opt; do
     case $opt in
 	n)
 	    engine=notmuch
@@ -18,9 +18,6 @@ while getopts nmx- opt; do
 	    printf "Usage: %s: [-n | -m | -x] query\n" $0
 	    exit 1
 	    ;;
-	-)
-	    break
-	    ;;
     esac
 done
 shift $(($OPTIND - 1))