nategood / commando

An Elegant CLI Library for PHP
MIT License
798 stars 80 forks source link

Long parameter with dash #30

Closed nicolashohm closed 10 years ago

nicolashohm commented 10 years ago

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
nategood commented 10 years ago

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

nategood commented 10 years ago

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