Skip to content
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

Add the ability to hide a command #277

Closed
pditommaso opened this issue Feb 2, 2018 · 8 comments
Closed

Add the ability to hide a command #277

pditommaso opened this issue Feb 2, 2018 · 8 comments

Comments

@pditommaso
Copy link
Contributor

pditommaso commented Feb 2, 2018

It would be useful to have a hidden attribute in the Command annotation to not include such command in the produced usage text, eg:

@Command(name="foo", hidden=true )
class Foo {

}
@remkop
Copy link
Owner

remkop commented Feb 2, 2018

Ok, interesting. Should not be too hard to implement.

I’m curious about your use case though. Why would one want to do this?

@pditommaso
Copy link
Contributor Author

Because we have some experimental commands, we want to keep undocumented.

@remkop
Copy link
Owner

remkop commented Feb 2, 2018

Ok, I see how that could be useful.

Do you think you can provide a pull request for this? I don’t mind doing this but I’m currently working on other picocli issues and I don’t know when I’ll get to it.

@pditommaso
Copy link
Contributor Author

I can surely give a try to this.

@remkop
Copy link
Owner

remkop commented Feb 4, 2018

Thanks for the pull request!
This has been merged with some minor changes.

Keep ‘em coming!

@pditommaso
Copy link
Contributor Author

Nice. If I'm understanding well this goes into version 3.0. Is there a planned release date or just estimated?

@remkop
Copy link
Owner

remkop commented Feb 4, 2018

No planned release date yet. Picocli 3.0 is still very much a work in progress, especially the new programmatic API (CommandSpec, OptionSpec etc.) - this is not feature complete without #257. Other bits also still need polishing.

I am considering doing one or more 3.0-alpha (early access) releases, so people can provide feedback, with the understanding that the API may change between now and the final 3.0 release. Would that be useful for you?

@pditommaso
Copy link
Contributor Author

sure thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants