Skip to main content

preprocess_argv

Function preprocess_argv 

Source
pub fn preprocess_argv(argv: Vec<String>) -> Vec<String>
Expand description

Lift the first -SIG / -NUM / -NAME argument out of argv and rewrite it as --signal SIG, so the rest of the args parse normally. The signal name can include or omit the SIG prefix; only the first matching argument is consumed (subsequent ones are passed through unchanged).