[parser] Fixed broken option handling
This commit is contained in:
parent
50c5511912
commit
a299939cb0
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
GIT_DIR="./"
|
GIT_DIR="./"
|
||||||
|
|
||||||
#Recursive argument parser
|
#Recursive argument parser
|
||||||
while [[ -z "${1}" ]]; do
|
while true; do
|
||||||
case ${1} in
|
case ${1} in
|
||||||
--help)
|
--help)
|
||||||
shift
|
shift
|
||||||
|
@ -27,6 +27,7 @@ while [[ -z "${1}" ]]; do
|
||||||
shift
|
shift
|
||||||
GIT_DIR="${1}"
|
GIT_DIR="${1}"
|
||||||
shift
|
shift
|
||||||
|
return
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue