diff --git a/scripts/ybcon.sh b/scripts/ybcon.sh index 2b878da..f3e37a4 100755 --- a/scripts/ybcon.sh +++ b/scripts/ybcon.sh @@ -17,6 +17,7 @@ usage() { fi } +pUsed=false args=""; run=false; skipArgsIteration=false; @@ -48,8 +49,13 @@ if [ "$#" != 0 ]; then usage false exit 0 ;; -p | --printresult ) - newArgs "$it" - shift ;; + if [ $pUsed = false ]; then + pUsed=true + newArgs "$it" + else + usage false + exit 0 + fi ;; *.ybcon ) newArgs "$it" run=true