-
Notifications
You must be signed in to change notification settings - Fork 424
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
subcommandsRepeatable = true vs HelpCommand #2123
Comments
roxspring
changed the title
subcommandsRepeatable = true vs help
subcommandsRepeatable = true vs HelpCommand
Sep 28, 2023
That does look unexpected. Could well be a bug. |
Opened #2126 demonstrating the problem in a unit test. Any thoughts on the best route forwards? Options that I see:
|
Added a potential fix to #2126 using a custom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I've understood correctly then it seems that
@CommandLine(subcommandsRepeatable)
breaksHelpCommand
's ability to provide help for that command.For example, given a
tool
withsubcommandsRepeatable = true
and a subcommandsub
, then I'd expecttool help sub
to provide the usage for thesub
subcommand, but what I see is the usage fortool
itself.Is this expected to work already and I'm doing something wrong? Or does this seem like a bug?
(I'll aim to isolate an example together tomorrow, but thought it might be worth starting the conversation sooner...)
The text was updated successfully, but these errors were encountered: