4804ce09adb4fe1227850edc5ef4545528704678 |
|
28-May-2011 |
rodionmoiseev <rodion.moiseev@gmail.com> |
Added support for command aliases, e.g. "ci" for "commit" command, etc. Any number of aliases can be optionally specified to the addCommand() method. In usage output commands containing aliases will be formatted with a post-fixed comma-separated list of aliases in brackets, e.g. commit(ci,cmt). usage(String) series of methods also accept both commands and aliases. All existing API should be compatible with previous versions.
/external/jcommander/src/test/java/com/beust/jcommander/command/CommandAliasTest.java
|