-
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
cli
command delegate to thebasic
subcommand:cli
command implementCallable<Integer>
just like thebasic
subcommand;basic
subcommand to the top-levelcli
commandcli
command, so they don't show up in the usage help for the top-level commandcall
method of the top-level command, delegate to thebasic
command (copy all options/params to an instance ofbasic
, and call itscall
method)