Function easy_shortcuts::argn_or
[−]
[src]
pub fn argn_or(idx: usize, def: &str) -> String
get the nth command-line argument or return the default.
extern crate easy_shortcuts as es; let arg = es::argn_or(1,"default"); assert_eq!(arg,"default");