Lines Matching refs:options
34 // register options and arguments
35 protected function setup(Options $options)
37 $options->setHelp('A very minimal example that does nothing but print a version');
38 $options->registerOption('version', 'print version', 'v');
42 protected function main(Options $options)
44 if ($options->getOpt('version')) {
47 echo $options->help();
62 - implement the ```setup($options)``` method and register options, arguments, commands and set help texts
63 - ``$options->setHelp()`` adds a general description
64 - ``$options->registerOption()`` adds an option
65 - ``$options->registerArgument()`` adds an argument
66 - ``$options->registerCommand()`` adds a sub command
67 - implement the ```main($options)``` method and do your business logic there
68 - ``$options->getOpts`` lets you access set options
69 - ``$options->getArgs()`` returns the remaining arguments after removing the options
70 - ``$options->getCmd()`` returns the sub command the user used