Skip to content

Instantly share code, notes, and snippets.

@thijsc
Last active January 29, 2016 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thijsc/aa39515ee0d822fa659b to your computer and use it in GitHub Desktop.
Save thijsc/aa39515ee0d822fa659b to your computer and use it in GitHub Desktop.
For Harm
use std::env;
fn main() {
let first = env::args().nth(1);
match first {
Some(ref value) if value == "create" => println!("in create"),
Some(_) => println!("smt else"),
None => println!("No arg given")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment