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

![image](https://user-images.githubusercontent.com/535593/99126059-b64b1d00-2605-11eb-9094-cbc5fbf3f486.png)

I would really like to be able to do the following: ``` prog cmd1 cmd2 ``` Because my program needs to have a CLI to run commands seq sequentially, without...

Is it possible to allow switch chaining like `-vv` for verbosity? With this ```rust /// verbosity level #[argh(switch, short = 'v')] verbosity: u8, ``` it only allows `-v -v`, not...

enhancement
help wanted
spec-change-required

If you look at the example here: https://github.com/google/argh#basic-example it ends with this: ~~~rust let up: GoUp = argh::from_env(); ~~~ but it doesnt show you how to actually use the result...

Is it possible to make a default subcommand with `argh`? I want something like this: ```rust #[derive(FromArgs, PartialEq, Debug)] /// Top-level command. struct TopLevel { #[argh(subcommand)] nested: Sub, } #[derive(FromArgs,...

This pull request introduces a `HelpMessage` trait that is implemented for every struct that derives `FromArgs`, allowing the user to manually display the help message generated by `argh`. Also, the...

In some cases (i.e. if an argument is the correct type but maybe isn't exactly desirable), it'd be nice to short-circuit the app and manually print the usage. I didn't...

An example directory of common usage patterns

enhancement
good first issue
help wanted

I love `argh` for its simplicity, compile performance and leanness, and I find myself migrating more and more projects to it. Just now it became evident that despite supporting `PathBuf`...

enhancement
help wanted
discussion

Please show default values of options in `--help` output :) (E.g. like clap)

spec-change-required