PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Console » Console_Getargs

A command-line arguments parser

This package is unmaintained.

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

License: PHP License

Description

The Console_Getargs package implements a Command Line arguments and
parameters parser for your CLI applications. It performs some basic
arguments validation and automatically creates a formatted help text,
based on the given configuration.

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#1823ClosedBug2004-07-08The getHelp() method ignores user-defined header for the helptext
#2409ClosedReq2004-09-28Hehe, first feature request
#2428ClosedReq2004-10-01Parameters: where are they ?
#2445ClosedReq2004-10-04Don't limit to $_SERVER['argv']
#2486ClosedBug2004-10-09Notice Error in parseArgs function
#2599ClosedBug2004-10-232 parameters for CVS example
#2600BogusBug2004-10-23Parameter with '=argument"
#2601ClosedBug2004-10-23Parameter with minus as "a-minus"
#2677ClosedBug2004-11-03Empty array for $arguments parameter
#3872Wont fixReq2005-03-18Add '--' option to tell Getargs to treat remainder of line as C_G_PARAMS
#4090ClosedBug2005-04-06Notice: Undefined index: min in c:\php4\PEAR\Console\Getargs.php on line 946
#4091ClosedReq2005-04-06New method: getValues()
#4359ClosedReq2005-05-16Minor Problem in tests/test.php
#5697ClosedBug2005-10-15Fatal error: Only variables can be passed by reference
#6219ClosedBug2005-12-11Reference behaviour error
#7132ClosedBug1.3.02006-03-16Missing value for $_SERVER['SCRIPT_NAME']
#8097ClosedBug1.3.12006-07-01getOptionalRequired throws Notices with E_ALL
#8643ClosedBug1.3.12006-09-06Providing strings as min/max values gives weird results
#8770ClosedBug1.3.12006-09-23incorrect path to class resource in example2
#8771ClosedReq1.3.12006-09-23improve help-usage output render with optional indentation
#8772ClosedReq1.3.12006-09-23improve col1 arguments alignment
#9252ClosedBug1.3.22006-11-07No error when required arguments are missing
#9583ClosedBug1.3.42006-12-08Console Args isDefined not working correctly
#10609ClosedDoc1.3.42007-04-04wrong require_once in doc
#10988OpenReq1.3.42007-05-09Allow accumulating unknown options as parameters
#13605ClosedReq1.3.42008-04-05fix unit tests to work with phpunit3
#14122OpenDoc1.3.42008-06-11Console_Getargs has no documentation
#15010FeedbackReq2008-11-13Optimize --help display
#21250ClosedBug1.3.52017-10-21Not compatible with PHP 7