[−][src]Function molt::check_args
pub fn check_args(
namec: usize,
argv: &[Value],
min: usize,
max: usize,
argsig: &str
) -> MoltResult
Checks to see whether a command's argument list is of a reasonable size. Returns an error if not. The arglist must have at least min entries, and can have up to max. If max is 0, there is no maximum. argv[0] is always the command name, and is included in the count; thus, min should always be >= 1.
Note: Defined as a function because it doesn't need anything from the Interp.