Skip to main content

extract_command_path

Function extract_command_path 

Source
pub fn extract_command_path(matches: &ArgMatches) -> Vec<String>
Expand description

Extracts the command path from ArgMatches by following the subcommand chain.

For example, myapp db migrate produces ["db", "migrate"].

No name is privileged. A word the caller answers for itself — a framework rendering its own help, say — never reaches these matches; a command merely called help is a command like any other and is returned as one.