Guest User

Untitled

a guest
Jun 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. use std::env;
  2.  
  3. fn main() {
  4. let args: Vec<String> = env::args().collect();
  5.  
  6. match &args[1] {
  7. Some(first_arg) => println!("Got some... {:?}", first_arg),
  8. None => println!("Frist argument is missing."),
  9. }
  10.  
  11. }
Add Comment
Please, Sign In to add comment