validate_command_with_args

Function validate_command_with_args 

Source
pub fn validate_command_with_args<I, S>(
    command: &str,
    args: I,
    options: &ValidationOptions,
) -> Result<()>
where I: IntoIterator<Item = S>, S: AsRef<str>,
Expand description

Validate a command and all its arguments.

§Arguments

  • command - The command to validate
  • args - The arguments to validate
  • options - Validation options

§Returns

Returns Ok(()) if all inputs are valid, or an error describing the first invalid input.