2008-07-08 22:54:38 UTC
Hi again Cal,
It seems that there are a bug when optional parameter is the last token and it is not present.
In your example will work any combination but if "c" is not present. It means:
command a b c => works
command b c => works
command a c => works
command c => works
command a b => hits the bug and fails
command b => hits the bug and fails
command a => hits the bug and fails
command a => hits the bug and fails
As an **ugly** workaround, you can add a "fake" last token, for instance:
command [a] [b] [c] fake
Of course, I'm going to check the code to solve this issue.
Thanks a lot for reporting!
Ferran