mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-05 08:11:41 +01:00
test: only accept short and long options, not silly in-betweens
It's not notmuch style to accept sloppy parameter names.
This commit is contained in:
parent
de66230b46
commit
13a59c4a8f
1 changed files with 6 additions and 6 deletions
|
@ -113,15 +113,15 @@ unset ALTERNATE_EDITOR
|
||||||
while test "$#" -ne 0
|
while test "$#" -ne 0
|
||||||
do
|
do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-d|--d|--de|--deb|--debu|--debug)
|
-d|--debug)
|
||||||
debug=t; shift ;;
|
debug=t; shift ;;
|
||||||
-i|--i|--im|--imm|--imme|--immed|--immedi|--immedia|--immediat|--immediate)
|
-i|--immediate)
|
||||||
immediate=t; shift ;;
|
immediate=t; shift ;;
|
||||||
-h|--h|--he|--hel|--help)
|
-h|--help)
|
||||||
help=t; shift ;;
|
help=t; shift ;;
|
||||||
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
|
-v|--verbose)
|
||||||
verbose=t; shift ;;
|
verbose=t; shift ;;
|
||||||
-q|--q|--qu|--qui|--quie|--quiet)
|
-q|--quiet)
|
||||||
quiet=t; shift ;;
|
quiet=t; shift ;;
|
||||||
--with-dashes)
|
--with-dashes)
|
||||||
with_dashes=t; shift ;;
|
with_dashes=t; shift ;;
|
||||||
|
@ -130,7 +130,7 @@ do
|
||||||
--no-python)
|
--no-python)
|
||||||
# noop now...
|
# noop now...
|
||||||
shift ;;
|
shift ;;
|
||||||
--va|--val|--valg|--valgr|--valgri|--valgrin|--valgrind)
|
--valgrind)
|
||||||
valgrind=t; verbose=t; shift ;;
|
valgrind=t; verbose=t; shift ;;
|
||||||
--tee)
|
--tee)
|
||||||
shift ;; # was handled already
|
shift ;; # was handled already
|
||||||
|
|
Loading…
Reference in a new issue