kohsuke/args4j

Allow Alternative Option Name

yeison opened this issue · 2 comments

Enhancement to allow more than one name to correspond to the same option.

Proposed usage example:

@Option(name="--recursive", alternativeName="-r", usage="recursively run something")
private boolean recursive;

Can we add this enhancement? I can work on it.

Oh, I was going to modify the code and I found aliases. This must be what I was looking for. Perhaps it's good to

 /**
 * Aliases for the options, such as <code>--long-option-name</code>.
 */
 String[] aliases() default { };