nategood / commando

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

Fix for needs() incorrect behavior #36

Closed omnicolor closed 10 years ago

omnicolor commented 10 years ago

Moved the check to see if needs are met until after the command line flags are processed so the check can see if an option is both defined and passed in by the user. Added unit tests to cover fix as well.

nategood/commando/issues#34

omnicolor commented 10 years ago

Is this not a fix you're interested in?

nategood commented 10 years ago

Will merge in shortly. Must have missed this earlier.

omnicolor commented 10 years ago

Awesome!