[−][src]Function naut_cli_ops::create_image_ops
pub fn create_image_ops<I: IntoIterator<Item = String>>(
iter: I
) -> TResult<Vec<Instr>>
Parses cli image operation definitions to image engine image operations.
This parser however doesn't replace Clap, and specifically its validator.
For example, --flip-horizontal 0
will not be allowed
by Clap's validator. The function below however does allow it, since we parse
only the amount of arguments we expect to receive, in this case 0.
Since we can rely on Clap, we left the added complexity out here.