Features:
- Optional argument descriptions (courtesy of @sabl0r)
Bugfixes:
- Passing a single hyphen as an option value works now (courtesy of @tistre)
Features:
- Added method to customize the help message (courtesy of @mfn)
- Option now has a static create method for call chaining in PHP 5.3 (courtesy of @kamermans)
Features:
- Added setters for default values and validation to Option
Features:
- Argument validation (courtesy of @jochenvdv)
Changes:
- Namespace is now Ulrichsg\Getopt
- Public API has been cleaned up, please refer to the documentation
Bugfixes:
- Long options are required to be longer than 1 character
- Passing duplicate option names to the constructor is forbidden by default
Features:
- Options can be numeric (courtesy of @patinthehat)
- Additional convenience methods for working with operands (ditto)
Features:
- Default values for options
- ArrayAccess, Countable and Traversable support
- Can set program name to enhance help message (courtesy of @misterion)
Features:
- Allow passing incomplete option arrays
Features:
- Added help text printing functionality
Bugfixes:
- Fixed passing a mandatory argument to the last in a sequence of collapsed short options
Bugfixes:
- Fixed bug where '0' could not be passed as an option value