-
-
Save panzi/4461dda71a6ed5437185 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let args = os::args(); | |
let mut washed_args = Vec::new(); | |
for arg in args.iter() { | |
washed_args.push(arg.as_slice()) | |
} | |
match washed_args.as_slice() { | |
[_, "review", opts..] => { review(opts) } | |
_ => { usage() } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment