Skip to content

Questions about "Help" #2028

Answered by remkop
irinaleo asked this question in Q&A
May 22, 2023 · 3 comments · 4 replies
Discussion options

You must be logged in to vote
  1. How might I go about changing the name "PicocliCommands" in the help response?

Until we add a setter for the name (#2031), please subclass the PicocliCommands class in your project and override the name() method.

  1. Is it possible to only show this category of commands ("PicocliCommands") when help is issued, and perhaps add a -a or --all flag to show the rest?

I am seeing this line in the Example application:

systemRegistry.setCommandRegistries(builtins, picocliCommands);

Omitting the builtins, and just registering the picocli commands should do the trick. Can you try this?

systemRegistry.setCommandRegistries(picocliCommands); // without builtins
  1. How might I show commands includin…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@remkop
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@irinaleo
Comment options

@irinaleo
Comment options

@remkop
Comment options

Answer selected by irinaleo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants