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

Enable dynamic construction of sub command list #32

Open
thallgren opened this issue Aug 28, 2013 · 1 comment
Open

Enable dynamic construction of sub command list #32

thallgren opened this issue Aug 28, 2013 · 1 comment

Comments

@thallgren
Copy link

When using a modular environment it might be desirable to register available commands using mechanisms such as OSGi service registrations or Guice multibinding injections. This is presently not possible since there's no way of creating a SubcommandHandler with a list that is obtained at runtime.

Please add a SubCommandHandler constructor where the list of SubCommands can be passed in as an argument.

@sfuhrm
Copy link

sfuhrm commented May 11, 2014

Maybe

CmdLineParser#addOption

is what you're looking for?
Can you give an example?

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