-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage string broken for ArgGroup of option and argument #498
Comments
An interesting further complication: if I add a
That seems like two too many of each argument. |
Using
|
Thanks for taking the time to file these! I agree with all of the above, so it's actually like 3 bugs in 1, or a formating one for the first comment which is an easy fix that I agree with too. I'll post back here as they're completed then put out 2.4.1. |
Tracking for issues:
|
For example, if an arg is part of a required group, it will only appear in the group usage string, and not in both the group as well as the arg by itself. Imagine a group containing two args, `arg1` and `--arg2` OLD: `myprog <arg1> <arg1|--arg2>` NEW: `myprog <arg1|--arg2>` Closes #498
@joshtriplett All tasks done, this should be merged with #499 at which point I'll put out v2.4.1 |
For example, if an arg is part of a required group, it will only appear in the group usage string, and not in both the group as well as the arg by itself. Imagine a group containing two args, `arg1` and `--arg2` OLD: `myprog <arg1> <arg1|--arg2>` NEW: `myprog <arg1|--arg2>` Closes #498
For example, if an arg is part of a required group, it will only appear in the group usage string, and not in both the group as well as the arg by itself. Imagine a group containing two args, `arg1` and `--arg2` OLD: `myprog <arg1> <arg1|--arg2>` NEW: `myprog <arg1|--arg2>` Closes #498
due to some crazy test issues and refactoring woes, the next version is actually v2.4.3 and is out on crates.io. This is the version that has the changes from this issue 😉 Sorry for the confusion! |
Consider the following subcommand definition:
(The same issue applies if I use
arg_from_usage
forbase
.)The usage string looks like this:
Note the extra square brackets around
base
; that part should look likebase|--delete
.Also, the alternative between
base
and--delete
should probably have something other than square brackets around it, since one of those two is required.The text was updated successfully, but these errors were encountered: