Details
-
Bug
-
Resolution: Won't Do
-
Major
-
1.0.0.Alpha2
-
None
Description
The Option shortName property in a plugin does not work as advertised in the reference guide.
Creating the example plugin from the "3.5.1. --named options" chapter:
public class ExamplePlugin implements Plugin {
@Command("perform")
public void exampleCommand(
@Option(name="one", shortName="o") String one,
@Option(name="two") String two,
PipeOut out)
}
Trying to use the shortName for the first argument doesn't work:
[no project] tmp $ exampleplugin perform -o one --two two
**INFO** The command [perform] takes [0] unnamed argument(s), but found [1].
**INFO** Swallowed unknown token [one] for command [perform].
>> option one equals: null
>> option two equals: two