Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
let mut args = std::env::args();
let mut country = String::from("Canada");
while let Some(arg) = args.next() {
if arg == "-country" {
if let Some(value) = args.next() {
country = value;
break;
}
}
}
println!("{}", country);