nategood / commando

An Elegant CLI Library for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Long parameter with dash

nicolashohm opened this issue · comments

How can I create params with dash in it?
I tried this: (new Command)->option('reset-list')->boolean() then I call my script this:

$ php test.php --reset-list
ERROR: Unknown option, reset, specified 

The help shows the param correctly:

$ php test.php --help
 test.php                                                                                                                                                                                                    


--help
     Show the help page for this command.


--reset-list

Confirmed bug. Will take a look at it. Thanks @nickel715!

Looks like this was fixed in recent work. Releasing a new build 0.2.6 now. That version should resolve this.