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
- splitbrain\phpcli\tests\Options
Namespace: splitbrain\phpcli\tests
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at tests/OptionsTest.php
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at tests/OptionsTest.php
__construct(),
checkArguments(),
getArgs(),
getBin(),
getCmd(),
getOpt(),
help(),
parseOptions(),
registerArgument(),
registerCommand(),
registerOption(),
setCommandHelp(),
setHelp(),
useCompactHelp()
|
public
array
|
$args
passed non-option arguments |
$bin,
$colors,
$command,
$newline,
$options,
$setup
|