Lines Matching refs:options
8 // register options and arguments
11 protected function setup(Options $options)
23 $options->setHelp(
29 $options->registerOption('version', 'print version', 'v');
30 $options->registerOption('page', 'Apply the template to the named page id', 'p');
31 $options->registerOption('usrrepl', 'newpagevars: Macro/Replacent string: @MACRO@,replacement;@MACRO_2@. . . ', 'u');
32 $options->registerOption('tmpl', 'Template to apply to the specified page ', 't');
33 $options->registerOption('cliuser', 'User of CLI process', 'c');
35 $options->registerOption('nosave',
42 $options->registerOption('screen', "Output results to screen; this option takes one of two parameters: either '$browser' or '$cmdLine'."
43 . " The command line output consists of the command line options in raw and parsed format. The browser output" .
46 $options->registerOption('ini', "Name of an ini file. This file must be stored in the root directory" .
53 protected function main(Options $options)
55 print_r($options->getArgs(), 1);
57 if ($options->getOpt('page')) {
58 $opts = $options->getArgs();
65 $helper->init($clopts, $options, $this);
66 } else if ($options->getOpt('ini')) {
67 $opts = $options->getArgs();
74 $helper->init($clopts, $options, $this);
75 } else if ($options->getOpt('version')) {
79 echo $options->help();
98 switch ($cl_switch) { // leaves space for additional command line options