Home » Console » Console_GetoptPlus
Command-line option parser - Console Getopt+ (Getopt Plus)
This package is unmaintained.
Download latest release 1.0.0RC1 (archived versions might be outdated)
License: The BSD License
Description
This package is (1) a PHP5 port/rewrite of Console_Getopt, (2) with added functionalities, and (3) with a Web interface to run getopt-like shell commands through a browser (not implemented yet).
(1) Console_getoptPlus:getopt() is a replacement for Console_getopt:getopt().
Same for getopt2() and readPHPArgv(). It returns PEAR_Exception instead of PEAR_Error. Error messages are the same.
(2) GetoptPlus:getoptplus uses an array-based description of the command. It can generates the command usage/help automaticly. It can return the parsed options and parameters in an associative array. It can be set to accept option shortcut names.
Fully tested with phpUnit. Code coverage test close to 100%.
Usage is fully documented in docs/examples files.
Maintainers
- Michel Corne (mcorne) — lead, active
Dependencies
Required
- PHP (>= 5.0)
- PEAR Installer (>= 1.4.0)
Releases
- 1.0.0RC1 (beta, 2008-01-26)
Release notes
License: The BSD License
* Initial PEAR release
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #20169 | Open | Req | 1.0.0RC1 | 2014-01-07 | Package has been unstable for 5 years |
| #23763 | Open | Bug | 1.0.0RC1 | 2018-09-02 | Contains deprecated each() |