Allow Alternative Option Name
yeison opened this issue · 2 comments
yeison commented
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;
yeison commented
Can we add this enhancement? I can work on it.
yeison commented
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 { };