mclevel: Move failure to AFTER checking for -h

ups
This commit is contained in:
Salt 2019-12-09 21:37:19 +00:00
parent 455b8f3574
commit b80f7f9ecb

View File

@ -111,8 +111,8 @@ main() {
error "Too many arguments: $arg" 2
fi
done
[ -z "$_level" ] && error "Program requires argument" 2
[ -n "$_opthelp" ] && printhelp && exit 0
[ -z "$_level" ] && error "Program requires argument" 2
givelevels "$_level"
}