Skip to main content

command_argv

Function command_argv 

Source
pub fn command_argv(cmd: &Command) -> Vec<String>
Expand description

Render a Command back to a typed argv vector for the report.

Command::get_args returns OsStrs; we lossily convert because the report is JSON and JSON can’t represent non-UTF-8 anyway. Operators reading the report on a screen never miss anything that matters.