Skip to content

Instantly share code, notes, and snippets.

@ryanmr
Created December 26, 2014 00:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ryanmr/eb5927dcbb84f0fe8f97 to your computer and use it in GitHub Desktop.
let args = os::args();
let tasks:uint = match args.len() {
2 => match args[1].as_slice().trim().parse() {
Some(x) => x,
None => 1
},
_ => 1
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment