-
|
Hello 👋 In hindsight (and with a proper design) the basic search subcommand should have been the main command.
Is there a better approach to what I'm trying to achieve? |
Beta Was this translation helpful? Give feedback.
Answered by
remkop
Oct 26, 2023
Replies: 1 comment 1 reply
-
|
One way to accomplish this is to let the top-level
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
shaikhu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One way to accomplish this is to let the top-level
clicommand delegate to thebasicsubcommand:clicommand implementCallable<Integer>just like thebasicsubcommand;basicsubcommand to the top-levelclicommandclicommand, so they don't show up in the usage help for the top-level commandcallmethod of the top-level command, delegate to thebasiccommand (copy all options/params to an instance ofbasic, and call itscallmethod)