-
Notifications
You must be signed in to change notification settings - Fork 418
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
Don't generate Autocomplete for hide commands #1076
Labels
Milestone
Comments
Thank you for raising this! Will you be able to provide a pull request for this? |
I use 4.3.2. <dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
<version>4.3.2</version>
</dependency> I hide the @Command(name = "get", hidden = true, description = "Get item from the Lockbox")
public void get(@Parameters(description = "The key", paramLabel = "KEY") String key) {
System.out.println(lockbox.get(key));
} Example output: linux:~ # ./lockbox item
contains create get remove set update
linux:~ # ./lockbox item
Missing required subcommand
Usage: lockbox item [COMMAND]
Manage lockbox items
Commands:
contains Check item exist in the Lockbox
create Create item in the Lockbox
remove Remove item from the Lockbox
set Set item in the Lockbox
update Update item in the Lockbox
|
remkop
added a commit
that referenced
this issue
Jun 30, 2020
Fixed in master. Thank you again for raising this! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I want to hide some commands.
It's hide from help message, but it does not hide from generated Autocomplete.
The text was updated successfully, but these errors were encountered: