args4j icon indicating copy to clipboard operation
args4j copied to clipboard

Enable dynamic construction of sub command list

Open thallgren opened this issue 10 years ago • 1 comments

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.

thallgren avatar Aug 28 '13 23:08 thallgren

Maybe

CmdLineParser#addOption

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

sfuhrm avatar May 11 '14 14:05 sfuhrm