Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::env;
- fn main() {
- let mut args = env::args();
- let prog = args.next().unwrap();
- let mut other = Vec::with_capacity(args.len() - 1);
- for a in args {
- other.push(a);
- }
- dbg!(prog);
- dbg!(other);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement