-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Wrong usage string for trailing varargs #298
Comments
Thanks for taking the time to file this! I can confirm, on 1.4.3 this is the case. I believe this may be a bug in the usage generation portion because in cases like the above it should be:
Note, you can also override the usage string to make it anything you like, but doing so manes you no longer get context aware usage strings generated on error messages. This doesn't appear to be a good case for that, but just FYI. We'll report back here once this bug is fixed 👍 |
Also, this is somewhat muddled by the use of |
Thanks for the swift reply! I'd like to add that implementing #278 would be ideal for my use case :) |
That's actually what I'm working on now, and should be implemented shortly :) |
fix(Usage Strings): fixes a bug ordering of elements in usage strings Closes #298
For the following code
I get this usage string:
aucont_start [FLAGS] [OPTIONS] [ARGS] <IMAGE_PATH> <CMD>
.[ARGS]
should definitely come after IMAGE_PATH and CMD in the usage string. The parsing itself works correctly.The text was updated successfully, but these errors were encountered: