Skip to main content

insert_default_command

Function insert_default_command 

Source
pub fn insert_default_command<I, S>(args: I, command: &str) -> Vec<String>
where I: IntoIterator<Item = S>, S: Into<String>,
Expand description

Inserts a command name at position 1 (after program name) in the argument list.

Used to implement default command support.