args4j
args4j copied to clipboard
Enable dynamic construction of sub command list
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.