argh
argh copied to clipboard
Rust derive-based argument parsing optimized for code size

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...
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...
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`...
Please show default values of options in `--help` output :) (E.g. like clap)