yuvrajsingh86 / cliche

Automatically exported from code.google.com/p/cliche
MIT License
0 stars 0 forks source link

'There's no command "X" taking 0 arguments' if command uses varargs #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create command method that takes one vararg parameter.
@Command
public void command(String...args){...}
2. call it without parameters
> command
3. error occurs

I expected that such command takes any number of arguments, including 0 - 
calling command() is valid use of such method

Instead cliche throws asg.cliche.CLIException: There's no command "command" 
taking 0 arguments

Original issue reported on code.google.com by r.krupin...@gmail.com on 11 Mar 2013 at 7:25