Skip to main content

command_args_from_matches

Function command_args_from_matches 

Source
pub fn command_args_from_matches(
    matches: &ArgMatches,
    spec: &CommandSpec,
    changed_only: bool,
) -> ValueMap
Expand description

Converts parsed command arguments into the JSON-ish map consumed by middleware.

When changed_only is true, only arguments that came from the command line are included. This is the user-args map used by authz and audit.