Registry / cli / corneltek-getoptionkit

corneltek-getoptionkit

JSON →
library2.7.3phppackagistunverified

Powerful command-line option toolkit for parsing CLI arguments and options.

composer require corneltek/getoptionkit
INSTALL
IMPORT
SIG · CORNELTEK-GETOPTIO
C
corneltek-getoptionkit
cliphpv2.7.3
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.

OptionParser
use GetOptionKit\OptionParser;

Parse command-line options with a simple verbose flag.

<?php require 'vendor/autoload.php'; use GetOptionKit\OptionParser; $parser = new OptionParser(); $parser->add('v|verbose', 'Enable verbose output'); $result = $parser->parse(['-v']); if ($result->verbose) { echo 'Verbose mode'; }
Debug
Known issues
breakingVersion 2.x uses a different API than 1.x; option names changed.
fix
Check documentation for migration from 1.x to 2.x.
affects: >= 2.0.0
Upgrade
Version history
2.7.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
corneltek-getoptionkit — pip install corneltek-getoptionkit · libregistry