Lines Matching defs:options
30 * Register options and arguments on the given $options object
32 * @param Options $options
36 protected function setup(Options $options) {
37 $options->setHelp('Manage the elastic search index');
39 $options->registerCommand('index', 'Index all pages and/or media in the wiki');
40 $options->registerOption(
48 $options->registerCommand(
52 $options->registerOption('clear', 'Remove existing index if any', 'c', false, 'createindex');
58 * Arguments and options have been parsed when this is run
60 * @param Options $options
63 protected function main(Options $options) {
69 $cmd = $options->getCmd();
73 $this->hlp->createIndex($options->getOpt('clear'));
80 if ($options->getOpt('only') !== 'media') {
83 if ($options->getOpt('only') !== 'pages') {