Crate argfile

Source
Expand description

§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);

Enums§

Argument
An individual argument

Constants§

PREFIX
Conventional prefix to mark argfiles

Functions§

expand_args
Load prefixed-args from specified files
expand_args_from
Load prefixed-args from specified files
parse_fromfile
Parse a Python fromfile
parse_responseresponse
Parse a Microsoft response file