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

Similar to the [click](https://click.palletsprojects.com/en/8.1.x/options/#choice-options) arg parse library from Python, it would be nice if `argh` had a similar feature. I am new to rust, so I can't suggest a good...

Fixes spelling (marco -> macro) in the expanded macro debugging section of README.

This is a refactor that requires all structs that implement FromArgs to also derive the argh::Help trait if JSON encoded help is needed. Added tests, still working on testing in...

Adding a subcommand for all commands, similar to `help`, which is responsible for generating all the subcommands for a given command. This function can be used to assist with auto-completion...

Adds basic support for multiline docstrings. The rule is basically if a line starts with an alphabetic character then it is joined to the previous line. Fixes #121 Fixes #128

Unless I'm missing something it is incredibly painfull to format descriptions with multiple lines. eg ``` /// Multiple choice option. /// Possible values: /// * foo - FOO /// *...

in https://github.com/google/argh/pull/129, the implementation would re-parse the command by forwarding the entire args into the optional subcommand if exists. Optimise the code so that a single pass would process the...

Let's say you have a command `watch`, then you could also define a short command `w` and / or and alternative `live` command for it.

There is already an issue open for struct flattening. This one is specifically for subcommand flattenin. Here is use-case example (using proc-macro from second comment): ```rust #[derive(FromArgs, PartialEq, Debug)] ///...