Flags
Flags copied to clipboard
A GNU-style PHP command line argument parser inspired by Go's Flag package.
Allow a callback that is called on all passed values, ignoring default $this->displayHelp = & $this->flags->bool('help', false, 'Display this help message.', function(){ return false; }); would cause `--help` being called...
Add aliases such that in the following example user **or** username could be used but not both. `$user =& $flags->string(["user", "username"], null, "Github Username");`
Feature Request