Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@erikaheidi
Copy link
Member

This fixes issue #29 where the hasFlag method didn't work as expected and as explained in the documentation.

In order to not break code that is already using --flagname within the hasFlag method, it now accounts for both ways, so if you call a command like this:

minicli hello test --myflag

Both $this->hasFlag('myflag') and $this->hasFlag('--myflag') now work.

@erikaheidi erikaheidi added the bug Something isn't working label May 8, 2021
@erikaheidi
Copy link
Member Author

Check this out @lotfio 🙏🏼

@lotfio
Copy link
Member

lotfio commented May 8, 2021

All good @erikaheidi 💪

image

@erikaheidi erikaheidi merged commit b359a74 into main May 8, 2021
@minicli minicli locked and limited conversation to collaborators May 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants