Created
January 21, 2014 19:46
-
-
Save bstrie/8547000 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 argv = std::os::args(); | |
let (x, y, z) = match argv { | |
[filename, arg1, arg2, arg3, ..rest] => (arg1, arg2, arg3), | |
_ => fail!("At least three arguments expected.") | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment