Skip to main content

argv_with_program_name

Function argv_with_program_name 

Source
pub fn argv_with_program_name(args: Vec<String>) -> Vec<String>
Expand description

The argument vector args() answers: argv as C, Python and Go define it — the program name first, then the real arguments. A run given no vector at all (the in-process engines) still has a program name, PROGRAM_NAME, so item 2 of args() is always the first real argument on every tier and length of args() is never 0.