4 $root = dirname(dirname(dirname(__FILE__
)));
5 require_once $root.'/scripts/__init_script__.php';
7 $args = new PhutilArgumentParser($argv);
8 $args->setTagline(pht('manage search'));
9 $args->setSynopsis(<<<EOSYNOPSIS
10 **search** __command__ [__options__]
11 Manage Phabricator search index.
15 $args->parseStandardArguments();
17 $workflows = id(new PhutilClassMapQuery())
18 ->setAncestorClass('PhabricatorSearchManagementWorkflow')
20 $workflows[] = new PhutilHelpArgumentWorkflow();
21 $args->parseWorkflows($workflows);