Registry / cli / pear-console-commandline

pear-console-commandline

JSON →
library1.2.6phppackagistunverified

A full featured command line options and arguments parser.

composer require pear/console_commandline
INSTALL
IMPORT
SIG · PEAR-CONSOLE-COMMA
P
pear-console-commandline
cliphpv1.2.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CommandLine
use Console\CommandLine;

Parses command-line arguments and options.

use Console\CommandLine; $parser = new CommandLine(); $parser->addOption('name', ['short_name' => '-n', 'long_name' => '--name', 'description' => 'Your name']); $result = $parser->parse(); echo "Hello, " . $result->options['name'];
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
24
Amazon
1
Resources
pear-console-commandline — pip install pear-console-commandline · libregistry