Convert table of primitives to positional arguments for external cmd (#2232)

* Convert table of primitives to positional arguments for external cmd

* Multiple file test, fix for cococo
This commit is contained in:
k-brk
2020-07-22 23:41:34 +02:00
committed by GitHub
parent 2a084fc838
commit 6b4634b293
4 changed files with 56 additions and 10 deletions

View File

@ -7,12 +7,7 @@ pub fn cococo() {
// 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);
}
println!("{}", &args[1..].join(" "));
} else {
println!("cococo");
}