Overview

Namespaces

  • None
  • splitbrain
    • phpcli
      • tests

Classes

  • Options
  • OptionsTest
  • TableFormatter
  • TableFormatterTest
  • Overview
  • Namespace
  • Class

Class Options

Class Options

Parses command line options passed to the CLI script. Allows CLI scripts to easily register all accepted options and commands and even generates a help text from this setup.

splitbrain\phpcli\Options
Extended by splitbrain\phpcli\tests\Options
Namespace: splitbrain\phpcli\tests
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at tests/OptionsTest.php
Methods inherited from splitbrain\phpcli\Options
__construct(), checkArguments(), getArgs(), getBin(), getCmd(), getOpt(), help(), parseOptions(), registerArgument(), registerCommand(), registerOption(), setCommandHelp(), setHelp(), useCompactHelp()
Properties summary
public array $args

passed non-option arguments

passed non-option arguments

#
Properties inherited from splitbrain\phpcli\Options
$bin, $colors, $command, $newline, $options, $setup
API documentation generated by ApiGen