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
- Bertrand Mansion (mansion) — lead, inactive
- Scott Mattocks (scottmattocks) — lead, inactive
- Christian Wenz (wenz) — developer, inactive
Dependencies
Required
- PHP (>= 4.1.0)
- PEAR Installer (>= 1.4.0b1)
Optional
- PHPUnit (pear.phpunit.de, >= 3.6.0)
Releases
- 1.4.0 (stable, 2018-02-13)
Release notes
License: PHP License
- Bug #21250 "Not compatible with PHP 7"
- PR #3 "fix for PHP 7.2" - 1.3.5 (stable, 2010-10-11)
- 1.3.4 (stable, 2006-11-16)
Release notes
License: PHP License
Update to package2.xml
- 1.3.3 (stable, 2006-11-07)
Release notes
License: PHP License
Fix for bug #9252: No error when required arguments are missing.
- 1.3.2 (stable, 2006-10-03)
Release notes
License: PHP License
Fix for bug #8643: Providing strings as min/max values gives weird results (Benjamin Bittner)
Fix for bug #8770: incorrect path to class resource in example2 (Laurent Laville)
Implement request #8771: Improve help-usage output render with optional indentation (Laurent Laville)
Implement request #8771: Improve col1 arguments alignment (Laurent Laville) - 1.3.1 (stable, 2006-04-10)
Release notes
License: PHP License
Fix for Bug #7132: Missing value for $_SERVER['SCRIPT_NAME']. If $SERVER['SCRIPT_NAME'] not found, use $argv[0].
- 1.3.0 (stable, 2005-05-13)
Release notes
License: PHP License
Implement feature request #4091: New method: getValues() (Stephan Schmidt)
- 1.2.1 (stable, 2004-11-18)
Release notes
License: PHP License
Implement fix for bug #2677: Empty array for $arguments parameter (Bertrand Gugger)
- 1.2.0 (stable, 2004-10-22)
Release notes
License: PHP License
Implement feature request #2428: Passing parameters on the command line
Implement feature request #2445: Allow user defined argument lists
Implement fix for bug #2486: Notice in parseArgs
More detailed help message. Shows optional/required arguments.
New example file. - 1.1.0 (stable, 2004-09-30)
Release notes
License: PHP License
Implement feature request #2409: Parse args like '-dt'...
- 1.0.0 (stable, 2004-09-20)
Release notes
License: PHP License
First stable release
Fixed bug #1823 : The getHelp() method ignores user-defined header. - 0.1.0 (beta, 2004-05-18)
Release notes
License: PHP License
Initial release
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #1823 | Closed | Bug | 2004-07-08 | The getHelp() method ignores user-defined header for the helptext | |
| #2409 | Closed | Req | 2004-09-28 | Hehe, first feature request | |
| #2428 | Closed | Req | 2004-10-01 | Parameters: where are they ? | |
| #2445 | Closed | Req | 2004-10-04 | Don't limit to $_SERVER['argv'] | |
| #2486 | Closed | Bug | 2004-10-09 | Notice Error in parseArgs function | |
| #2599 | Closed | Bug | 2004-10-23 | 2 parameters for CVS example | |
| #2600 | Bogus | Bug | 2004-10-23 | Parameter with '=argument" | |
| #2601 | Closed | Bug | 2004-10-23 | Parameter with minus as "a-minus" | |
| #2677 | Closed | Bug | 2004-11-03 | Empty array for $arguments parameter | |
| #3872 | Wont fix | Req | 2005-03-18 | Add '--' option to tell Getargs to treat remainder of line as C_G_PARAMS | |
| #4090 | Closed | Bug | 2005-04-06 | Notice: Undefined index: min in c:\php4\PEAR\Console\Getargs.php on line 946 | |
| #4091 | Closed | Req | 2005-04-06 | New method: getValues() | |
| #4359 | Closed | Req | 2005-05-16 | Minor Problem in tests/test.php | |
| #5697 | Closed | Bug | 2005-10-15 | Fatal error: Only variables can be passed by reference | |
| #6219 | Closed | Bug | 2005-12-11 | Reference behaviour error | |
| #7132 | Closed | Bug | 1.3.0 | 2006-03-16 | Missing value for $_SERVER['SCRIPT_NAME'] |
| #8097 | Closed | Bug | 1.3.1 | 2006-07-01 | getOptionalRequired throws Notices with E_ALL |
| #8643 | Closed | Bug | 1.3.1 | 2006-09-06 | Providing strings as min/max values gives weird results |
| #8770 | Closed | Bug | 1.3.1 | 2006-09-23 | incorrect path to class resource in example2 |
| #8771 | Closed | Req | 1.3.1 | 2006-09-23 | improve help-usage output render with optional indentation |
| #8772 | Closed | Req | 1.3.1 | 2006-09-23 | improve col1 arguments alignment |
| #9252 | Closed | Bug | 1.3.2 | 2006-11-07 | No error when required arguments are missing |
| #9583 | Closed | Bug | 1.3.4 | 2006-12-08 | Console Args isDefined not working correctly |
| #10609 | Closed | Doc | 1.3.4 | 2007-04-04 | wrong require_once in doc |
| #10988 | Open | Req | 1.3.4 | 2007-05-09 | Allow accumulating unknown options as parameters |
| #13605 | Closed | Req | 1.3.4 | 2008-04-05 | fix unit tests to work with phpunit3 |
| #14122 | Open | Doc | 1.3.4 | 2008-06-11 | Console_Getargs has no documentation |
| #15010 | Feedback | Req | 2008-11-13 | Optimize --help display | |
| #21250 | Closed | Bug | 1.3.5 | 2017-10-21 | Not compatible with PHP 7 |