PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Console » Console_Getopt

Command-line option parser

This package is unmaintained.

Download latest release 1.4.3 (there might be newer Composer installable version)

License: BSD-2-Clause

Description

This is a PHP implementation of "getopt" supporting both
short and long options.

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#369ClosedBug2003-12-06GetOpt 1.1 breaks pearcmd
#1499BogusBug2004-05-25Console_Getopt does not support args with spaces
#1831ClosedBug2004-07-09Does not support = sign in argument value on longoptions
#4448ClosedBug2005-05-26Long parameter values truncated with longoption parameter
#4475ClosedBug2005-05-30An ambiguous error occurred when specifying similar longoption name.
#7444ClosedBug1.22006-04-20Trailing spaces after php closing tag
#10055ClosedBug1.2.12007-02-08Not failing properly on short options missing required values
#10288BogusBug1.2.22007-03-06Order of options causes incorrect return
#10363ClosedBug1.2.22007-03-13E_NOTICE triggered in some cases
#10557ClosedBug1.2.22007-03-29Not failing properly on LONG options missing required values (similar to 10055)
#11068ClosedBug1.2.22007-05-17No way to read plain "-" option
#11620BogusBug1.2.32007-07-17Notice: Undefined offset: 1 in Console/Getopt.php on line 214
#11954Wont fixBug1.2.32007-09-01long opt return -- in option, short opt do not
#12663Wont fixBug1.2.32007-12-11Methods need to be declared as static
#13140ClosedReq1.2.32008-02-18[PATCH] to skip unknown parameters.
#13902ClosedDoc2008-05-14User note that is a documentation problem
#14684BogusBug1.2.32008-09-21console_getopt provides different results depending on platform used.
#14786ClosedReqCVS2008-10-13Improve PHPCS results
#18989ClosedBugSVN2011-11-14remove error_reporting (for PEAR QA team)
#19578DuplicateBug1.3.12012-08-23throws warnings in strict mode
#20259ClosedBugSVN2014-04-28Please change license (move away from PHP license)
#23762OpenBug1.4.12018-09-02Contains deperecated each()
#23771OpenBug1.4.12018-09-28Missing argument in console_getopt