Skip to content

Instantly share code, notes, and snippets.

@KMahoney
Created June 12, 2015 20:20
Show Gist options
  • Save KMahoney/6cb25a1f5a01bbb610d7 to your computer and use it in GitHub Desktop.
Save KMahoney/6cb25a1f5a01bbb610d7 to your computer and use it in GitHub Desktop.
fn main() {
let mut arglist = args().skip(1);
match arglist.next() {
Some(ref filename) if arglist.count() == 0 => run(filename),
_ => usage()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment