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

Fixes #30 This adds `-h` as a short alias for `--help`

(revised summary to match code changes) * Adding FromArgs::help_json_from_args() to get JSON encoded help message This enables template engines to render the help information in other formats such as markdown.

There should be an option to allow chaining of short switches. e.g. passing `-ab` would be equivalent to `-a -b`

As suggested in https://github.com/google/argh/pull/112#discussion_r764403695, @richkadel suggested that if a field doesn't have an `arg_name` specified, we could generate one automatically for it to make it prettier for help messages or...

Whether `positional` or `option` arguments that are of type `Vec` are always treated as "0 or more", with no way to specify "one or more", or "two or more". This...

There might be a reason why `default` requires an expression-as-a-string, but I can't think of one. The [reference](https://doc.rust-lang.org/reference/procedural-macros.html#attribute-macros) has examples of macros doing lots of funky things inside attributes. It...

Currently, passing `-h` doesn't work: > Unrecognized argument: -h Passing `-h` should work the same as `--help`, unless one of the options/switches uses `short = 'h'`. --- And in the...

bug
good first issue

https://fuchsia-review.googlesource.com/c/fuchsia/+/559693/4/src/developer/forensics/crasher/rust/src/main.rs#41 is an example where the current way to define subcommands ends up being quite verbose. I suspect there might be obstacles to generating code without a named type to...

Hey :wave: It's super handy that the help documentation is generated from docstrings :) I was wondering if there are any plans for being able to generate markup docs from...

I had this compiler error just now: ``` error: Long names must be lowercase --> ../../src/diagnostics/validator/logs/sink/src/main.rs:49:27 | 49 | #[argh(option, long = "ignore_tag")] | ``` The option name *is* lowercase,...