Skip to main content

next_command

Function next_command 

Source
pub fn next_command(argv: &[String], force: bool) -> Vec<String>
Expand description

argv (the arguments after the program name) as a dry run’s next: command: without its --dry-run flag, and with --force before any -- when force. A --dry-run that is no flag stays: a FILE after --, or an option’s value (--text --dry-run). Pure: no I/O.