PEAR is archived and read-only

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

Home » Console » Console_CommandLine

A full featured command line options and arguments parser

This package is unmaintained.

Download latest release 1.2.2 (there is a newer Composer installable version)

License: MIT

Description

Console_CommandLine is a full featured package for managing command-line
options and arguments highly inspired from python optparse module, it allows
the developer to easily build complex command line interfaces.

Main features:
* handles sub commands (ie. $ myscript.php -q subcommand -f file),
* can be completely built from an xml definition file,
* generate --help and --version options automatically,
* can be completely customized,
* builtin support for i18n,
* and much more...

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#12711ClosedBug0.1.02007-12-17Subcommand support not working.
#12850BogusBug0.2.02008-01-08Long names incorrectly parsed
#12859ClosedBug0.2.02008-01-08xmlschema.rng gets searched at the wrong folder
#13038ClosedReq1.0.0RC12008-02-01Remove dependency on $_SERVER
#13132ClosedBug1.0.0RC12008-02-16<choices> within <option> using XML does not appear to be supported yet.
#14142ClosedBug1.0.02008-06-15Missing ext for include file and more
#14435ClosedBug1.0.02008-08-01own -h short option doesn't remove help short option
#14436ClosedBug1.0.02008-08-01Typo in error message
#14454ClosedBug1.0.12008-08-04Console_Commandline hangs when called via browser
#14717ClosedBug1.0.22008-09-27Password not option with XML config
#14753ClosedReq1.0.32008-10-06add_list_option parameter for --list-XXX options
#14762ClosedBug1.0.32008-10-08error message always tells me to use "-h" for help
#15251ClosedReqCVS2008-12-05Allow specifying optional arguments for sub-commands
#15324ClosedReqCVS2008-12-16Add ability to set custom error messages
#15325ClosedReqCVS2008-12-16Add ability to detect missing sub-command
#15374ClosedBugCVS2008-12-22RelaxNG validation should be less strict
#15375ClosedBugCVS2008-12-22Cannot add a comment before the root node of the xml file
#15376ClosedBugCVS2008-12-22short option and long options in separated lines in help message
#15377ClosedBugCVS2008-12-22StoreFalse and StoreTrue actions should have a boolean default value
#15407ClosedBugCVS2008-12-26Broken CVS unit tests
#15918ClosedReq2009-02-20More flexible list action
#15919DuplicateReq2009-02-20More flexible list action
#16317ClosedDocCVS2009-06-11Using Console_CommandLine with web requests is not documented
#16320ClosedBug1.0.62009-06-12StoreArray/Default/Choices conflict
#16329ClosedBug1.0.62009-06-15sub command aliases do not work.
#16330ClosedBug1.0.62009-06-15Nested subCommands help output not quite right.
#16331Wont fixReq1.0.62009-06-15Using out of order options should not be an issue.
#16332ClosedReqCVS2009-06-16Add support for optional arguments in XML
#16370ClosedReq1.1.02009-06-23Allow pre-processing of arguments for lists.
#16497ClosedReq1.1.02009-08-07Cascade line width when using commands.
#16507ClosedDoc1.1.02009-08-10Typo in code example
#16679Wont fixReq1.1.02009-10-05Allow arguments to have Actions
#16680DuplicateReq1.1.02009-10-05Allow arguments to have Actions
#16764ClosedBug1.1.02009-11-04Invalid Package.xml
#16848ClosedBug1.1.12009-11-30Trailing spaces in quoted argument are truncated.
#16849ClosedBug1.1.12009-11-30WebResquest test3 is using POST and not GET to supply data.
#16850ClosedBug1.1.12009-11-30Parse9 test (password) fails.
#16887ClosedDoc2009-12-08User note that is a documentation problem
#16914ClosedBugCVS2009-12-17Password action doesn't work as expected
#17113BogusBugCVS2010-02-16Tests fail
#17470BogusBugSVN2010-06-06Trunk unit test failures
#18008ClosedReq1.1.32010-10-29support "list" arguments like list options
#18170No FeedbackReq1.1.32011-01-03Allow several options to work with the same name
#18397ClosedDoc1.1.32011-03-24List action example is wrong
#18582ClosedReq1.1.32011-06-03Add possibility to require a subcommand
#18583ClosedReq1.1.32011-06-03Default values for arguments
#18584ClosedBug1.1.32011-06-03Optional arguments not shown as optional
#18682ClosedBugSVN2011-07-24columnWrap() in Default Renderer eats up lines with only a EOL
#18703ClosedReq1.1.32011-08-03No way to override reading of stdin with -
#18958ClosedBugSVN2011-11-06Test failure
#18988ClosedBugSVN2011-11-14remove error_reporting (for PEAR QA team)
#19106ClosedBugSVN2011-12-07upgrade PHPUnit require statements (for PEAR QA Team)
#19163Wont fixReq1.1.32011-12-29Support for multiple options like "-Dfoo=bar"
#19683ClosedBug1.2.02012-10-30Unit tests are broken
#19921ClosedBug1.2.02013-04-29package dependencies don't include dom
#19945Wont fixReq1.2.02013-05-12support a max number of arguments
#20963ClosedBug1.2.02015-10-12Release not published on packagist
#20964ClosedReq1.2.02015-10-14Update composer deps
#21063ClosedBug1.2.12016-05-12xmlschema.rng location does not work with composer
#21223BogusBug1.2.22017-06-27Short option with value not detected on PHP 7.1