Closed
Description
When there are a lot of option parameters, it is more convenient to use a bean to receive them.
For example, the following usage:
@Command(command = "foo")
public void foo(@OptionBody FooOption fooOption) {
//...
}
public static class FooOption{
@Option(longNames = "verbose",shortNames = 'v')
private boolean verbose;
@Option(longNames = "other",shortNames = 'o')
private String other;
}