mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
9 lines
249 B
Rust
9 lines
249 B
Rust
// { "args": ["one", "two", "three" ]}
|
|
|
|
fn main() {
|
|
let mut args = std::env::args();
|
|
assert_eq!(args.len(), 3);
|
|
assert_eq!(args.next().unwrap(), "one");
|
|
assert_eq!(args.next().unwrap(), "two");
|
|
assert_eq!(args.next().unwrap(), "three");
|
|
}
|