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))