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

In some cases I don't expect `Vec` to mean that the argument can be repeated, or `Option` to mean that the argument is optional. For example an argument expects a...

First: Thanks for writing & publishing argh as libre software! It's been a joy to use and solves the problem without dependencies. Or at least it used to, hence this...

Consider this example/test source code: ```rust use argh::FromArgs; #[derive(FromArgs)] /// Example struct Args { #[argh(subcommand)] subcommand: Subcommand, } #[derive(FromArgs)] #[argh(subcommand)] enum Subcommand { One(SubcommandOption1), } #[derive(FromArgs)] #[argh(subcommand, name = "one")]...

Added in https://github.com/google/argh/pull/76 but not documented since then, it would be nice if this function is more discoverable.

Consider a basic minimal bit of argh code centered on subcommands, something like this: ```rust use argh::FromArgs; #[derive(FromArgs)] /// Example struct Args { #[argh(subcommand)] subcommand: Subcommand, } #[derive(FromArgs)] #[argh(subcommand)] enum...

The `argh_shared` crate depends on `serde`, which uses `std` in its default configuration. This makes it incompatible with `no_std` crates. As per the [`serde` docs](https://serde.rs/no-std.html), adding `default-features = false` makes...

Is there any way to specify to argh that any: ``` #[argh(positional, greedy)] /// command line args args: Vec, ``` arg options are expected to be totally "raw" (for lack...

It would be really nice to have an option to show the help for all subcommands vs. having to run --help for each subcommand recursively.

According to the Fuchsia command line rubric, and general Unix practice, a single dash is not allowed as a key or switch, but that's how argh treats it, because it...

This strict requirement makes sense only for programs designed for Fuchsia, no other system has this convention. This commit adds a type-level attribute `lax_description` that disables the option descriptions validation...