Skip to main content

schema_to_args_spec

Function schema_to_args_spec 

Source
pub fn schema_to_args_spec(schema: &Schema) -> ArgsSpec
Expand description

Convert a Schema into an ArgsSpec suitable for strict-mode tail validation. Positional required flags are intentionally dropped: the binary itself will enforce them after parsing, and treating them as required here would turn “missing positional” into a double-errored mess.