Top Level :: Console

Package Information: Console_GetoptPlus

» Summary » License
Command-line option parser - Console Getopt+ (Getopt Plus) The BSD License
» Current Release » Bug Summary
1.0.0RC1 (beta) was released on 2008-01-26 by mcorne (Changelog)
Easy Install

Not sure? Get more info.

pear install Console_GetoptPlus

Pyrus Install

Try PEAR2's installer, Pyrus.

php pyrus.phar install pear/Console_GetoptPlus

  • Package Maintenance Rank: 10 of 225 packages with open bugs
  • Number of open bugs: 1 (1 total bugs)
  • Average age of open bugs: 2256 days
  • Oldest open bug: 2256 days
  • Number of open feature requests: 1 (1 total feature requests)

Report a new bug to Console_GetoptPlus
» 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 » More Information

Dependencies for Console_GetoptPlus