PHPackages                             chh/optparse - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. chh/optparse

ActiveLibrary[CLI &amp; Console](/categories/cli)

chh/optparse
============

Easy to use option parser.

v0.1.0(13y ago)2054.1k↓11.1%1[1 PRs](https://github.com/CHH/optparse/pulls)2mitPHPPHP &gt;=5.3.3

Since Dec 19Pushed 9y ago2 watchersCompare

[ Source](https://github.com/CHH/optparse)[ Packagist](https://packagist.org/packages/chh/optparse)[ RSS](/packages/chh-optparse/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (2)

Optparse — Another Command Line Argument Parser
===============================================

[](#optparse--another-command-line-argument-parser)

Install
-------

[](#install)

1\. Get [composer](http://getcomposer.org).

2\. Put this into your local `composer.json`:

```
{
  "require": {
    "chh/optparse": "*@dev"
  }
}

```

3\. `php composer.phar install`

Example
-------

[](#example)

`hello.php`:

```
