argh icon indicating copy to clipboard operation
argh copied to clipboard

Rust derive-based argument parsing optimized for code size

Results 78 argh issues
Sort by recently updated
recently updated
newest added

It should be an error to have multiple options/switches with same short name. Currently it compiles without even a warning! E.g. if you have two options using the same short...

bug
good first issue

There are some changes to the library (as well as increasing usage!) and I'd like to prevent size regressions. We should check binary output on a slew of targets/configs on...

enhancement
help wanted
discussion

A convenient feature of clap is the support for [generating shell completion scripts](https://docs.rs/clap/2.33.0/clap/struct.App.html#method.gen_completions) from build.rs (i.e. during build of the application, thus without overhead on the application). I don't know...

enhancement
help wanted
discussion

It should be possible to use an `enum` as the possible value of an option, without wrapping it in an `Option` when and if the `enum` implements `Default`. Current example...

enhancement

Currently the usage prints positional args in snake_case, e.g.: ``` Usage: D:\foo.exe [] [-t ] [] [] ``` It should also print positional args in kebab-case for consistency (`project-file` in...

Is there a way to specify that a positional arg need at least one value? ```rust #[derive(FromArgs)] /// MyCMD struct Opt { #[argh(positional)] /// script files to run test_file: Vec,...

Hello, I was working on a crate and found inconsistent newlines when argh prints help for a binary when using different forms of doc comments. When fields within a `FromArgs`...

If Argh is "optimized for code size", then it only makes sense to show a comparison with other existing parsers, similar to the chart in the README for [pico-args](https://lib.rs/crates/pico-args). (Though,...

Can it be used for implementing programs like `xargs` or `nice` where it is important to pass around command line unmodified, even if it contains invalid UTF-8?

While initially written for Fuchsia. this is a generally useful library. References could be confusing