macro_rules! args {
($($arg:expr),* $(,)?) => { ... };
}Available on crate feature
process only.Expand description
Create a config to add multiple args of different types when building a subprocess.
See CommandBuilder for more info on spawning
child processes.
ยงExample
use std::path::Path;
use cu::pre::*;
let path = Path::new("foo");
cu::which("ls")?.command()
// without the macros, you can't mix `&Path` and `&str`
.add(cu::args![path, "-a"])
// ... more config