3 final class PhabricatorDaemonManagementDebugWorkflow
4 extends PhabricatorDaemonManagementWorkflow
{
6 public function shouldParsePartial() {
10 protected function didConstruct() {
13 ->setExamples('**debug** __daemon__')
16 'Start __daemon__ in the foreground and print large volumes of '.
17 'diagnostic information to the console.'))
27 'help' => pht('Maximum pool size.'),
31 'name' => 'as-current-user',
33 'Run the daemon as the current user '.
34 'instead of the configured %s',
40 public function execute(PhutilArgumentParser
$args) {
41 $argv = $args->getArg('argv');
42 $run_as_current_user = $args->getArg('as-current-user');
45 throw new PhutilArgumentUsageException(
46 pht('You must specify which daemon to debug.'));
50 'class' => array_shift($argv),
52 'pool' => (int)$args->getArg('pool'),
56 return $this->launchDaemons(
61 $run_as_current_user);