sulong
sulong copied to clipboard
Enable command line arguments for Rust
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);