Skip to main content

get_os_args

Function get_os_args 

Source
pub fn get_os_args() -> Vec<String>
Expand description

Get the command-line arguments.

Returns all arguments including the program name.

ยงExample

use click::utils::get_os_args;

let args = get_os_args();
// args[0] is typically the program name