Skip to main content

split_command_line

Function split_command_line 

Source
pub fn split_command_line(line: &str) -> Option<Vec<String>>
Expand description

Split a command line into a program and its arguments, the way a POSIX shell does for words and quotes, without doing anything else a shell does: no variables, no globs, no pipes. Enough for credential_process = "op read ..." --flag 'a b'.