10 releases (1 stable)

new 1.0.0 Feb 11, 2026
0.2.1 Jul 25, 2024
0.2.0 Apr 12, 2024
0.1.6 Sep 8, 2023
0.1.3 Dec 16, 2021

#93 in Command-line interface

Download history 41989/week @ 2025-10-24 43038/week @ 2025-10-31 41412/week @ 2025-11-07 50109/week @ 2025-11-14 55616/week @ 2025-11-21 73300/week @ 2025-11-28 52355/week @ 2025-12-05 47988/week @ 2025-12-12 49459/week @ 2025-12-19 45535/week @ 2025-12-26 68462/week @ 2026-01-02 64649/week @ 2026-01-09 67789/week @ 2026-01-16 66233/week @ 2026-01-23 89195/week @ 2026-01-30 103922/week @ 2026-02-06

339,871 downloads per month
Used in 69 crates (16 directly)

MIT/Apache

17KB
152 lines

argfile

Load additional CLI args from file

Prior art:

This is meant to work with any CLI parser, like clap, by pre-processing the arguments, like wild.

Examples

argfile::expand_args(
    argfile::parse_fromfile,
    argfile::PREFIX,
).unwrap();

To integrate this with wild and clap

let args = wild::args_os();
let args = argfile::expand_args_from(
    args,
    argfile::parse_fromfile,
    argfile::PREFIX,
).unwrap();
let matches = clap::Command::new("your_app")
    .get_matches_from(args);

argfile

Load additional CLI args from file

Documentation License Crates Status

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

Dependencies

~300–445KB