mclevel: Add failure on zero arguments

This commit is contained in:
Salt 2019-12-09 21:36:46 +00:00
parent 14c6034acb
commit 455b8f3574

View File

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