sulong icon indicating copy to clipboard operation
sulong copied to clipboard

Enable command line arguments for Rust

Open anatol1234 opened this issue 7 years ago • 0 comments

This PR enables the retrieving and parsing of command line args from Rust with args_os. Example:

let n = std::env::args_os().nth(1)
        .and_then(|s| s.into_string().ok())
        .and_then(|n| n.parse().ok())
        .unwrap_or(7);

anatol1234 avatar Aug 28 '17 10:08 anatol1234