Skip to main content

set_argv

Function set_argv 

Source
pub fn set_argv(script: Option<String>, args: Vec<String>)
Expand description

Sets the program’s argument list. script is the path to the script (None for stdin); args are the trailing arguments.

The script path is stored as None internally and wrapped in Option when std::argv() is called (which has access to the runtime’s lang items).