You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing a CLI where the top-level command has two params (a required = true param and a usageHelp = true param), plus a number of subcommands
When the command is parsed with the required param missing and the usageHelp param supplied, I can check isUsageHelpRequested and print the usage for the top level command
When a subcommand is included I have to either:
include the required param as well in order to get the subcommand parsed without error (so that I can print the usage for it), or
I'm implementing a CLI where the top-level command has two params (a
required = true
param and ausageHelp = true
param), plus a number of subcommandsWhen the command is parsed with the
required
param missing and theusageHelp
param supplied, I can checkisUsageHelpRequested
and print the usage for the top level commandWhen a subcommand is included I have to either:
help = true
as well asusageHelp = true
in order to pass the check at https://github.com/remkop/picocli/blob/master/src/main/java/picocli/CommandLine.java#L2094 and still be able to tell whether help was requested (I can't see any way to tell if a param with justhelp = true
was parsed)The text was updated successfully, but these errors were encountered: