diff --git a/src/workflow/help/ArcanistHelpWorkflow.php b/src/workflow/help/ArcanistHelpWorkflow.php index 2b0cf99c..1ff79ee8 100644 --- a/src/workflow/help/ArcanistHelpWorkflow.php +++ b/src/workflow/help/ArcanistHelpWorkflow.php @@ -57,7 +57,7 @@ EOTEXT $target = null; if ($this->getArgument('command')) { - $target = reset($this->getArgument('command')); + $target = head($this->getArgument('command')); if (empty($workflows[$target])) { throw new ArcanistUsageException( "Unrecognized command '{$target}'. Try 'arc help'.");