mclevel: Add failure on zero arguments
This commit is contained in:
parent
14c6034acb
commit
455b8f3574
1
mclevel
1
mclevel
@ -111,6 +111,7 @@ main() {
|
|||||||
error "Too many arguments: $arg" 2
|
error "Too many arguments: $arg" 2
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
[ -z "$_level" ] && error "Program requires argument" 2
|
||||||
[ -n "$_opthelp" ] && printhelp && exit 0
|
[ -n "$_opthelp" ] && printhelp && exit 0
|
||||||
givelevels "$_level"
|
givelevels "$_level"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user