setName('debug') ->setExamples('**debug** __daemon__') ->setSynopsis( pht( 'Start __daemon__ in the foreground and print large volumes of '. 'diagnostic information to the console.')) ->setArguments( array( array( 'name' => 'argv', 'wildcard' => true, ), )); } public function execute(PhutilArgumentParser $args) { $argv = $args->getArg('argv'); if (!$argv) { throw new PhutilArgumentUsageException( pht('You must specify which daemon to debug.')); } $daemon_class = array_shift($argv); return $this->launchDaemon($daemon_class, $argv, $is_debug = true); } }