master CI badge crates.io badge docs.rs badge dependencies badge

Turn a struct into arguments for a Command.

```rust use argley::prelude::*;

[derive(Args)]

struct Args<'a> { compress: bool,

#[arg(rename = "dir")] output_dir: &'a Path,

#[arg(variadic)] input_files: Vec<&'a Path>, }

let args = Args { compress: true, outputdir: Path::new("./output"), inputfiles: vec![Path::new("./foo.txt"), Path::new("./bar.txt")], };

let output = Command::new("some-application") .addargset(&args) .output() .unwrap(); ```

Support for async-std and tokio can be enabled via their respective features.

See crate-level docs for detailed configuration options.