use std::env; fn main() { let args: Vec<String> = env::args().collect(); println!("{:?}", args[1]); }
$ cargo run queue
Compiling parallel v0.1.0 (/home/vagrant/dev/rust/parallel)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s
Running `target/debug/parallel queue`
“queue”