mirror of
https://github.com/nushell/nushell.git
synced 2025-06-18 07:56:56 +02:00
18 lines
417 B
Rust
18 lines
417 B
Rust
fn main() {
|
|
let args: Vec<String> = std::env::args().collect();
|
|
|
|
if args.len() > 1 {
|
|
// Write back out all the arguments passed
|
|
// if given at least 1 instead of chickens
|
|
// speaking co co co.
|
|
let mut arguments = args.iter();
|
|
arguments.next();
|
|
|
|
for arg in arguments {
|
|
println!("{}", &arg);
|
|
}
|
|
} else {
|
|
println!("cococo");
|
|
}
|
|
}
|