Show the usage message when -p/--printresult is repeated.
This commit is contained in:
parent
36c1f17fc1
commit
f5c8b6290e
|
@ -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 )
|
||||
if [ $pUsed = false ]; then
|
||||
pUsed=true
|
||||
newArgs "$it"
|
||||
shift ;;
|
||||
else
|
||||
usage false
|
||||
exit 0
|
||||
fi ;;
|
||||
*.ybcon )
|
||||
newArgs "$it"
|
||||
run=true
|
||||
|
|
Loading…
Reference in New Issue