Changeset View
Changeset View
Standalone View
Standalone View
src/configuration/ArcanistConfiguration.php
| Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | final public function selectWorkflow( | ||||
| } | } | ||||
| $this->raiseUnknownCommand($command); | $this->raiseUnknownCommand($command); | ||||
| } | } | ||||
| private function raiseUnknownCommand($command, array $maybe = array()) { | private function raiseUnknownCommand($command, array $maybe = array()) { | ||||
| $message = pht("Unknown command '%s'. Try 'arc help'.", $command); | $message = pht("Unknown command '%s'. Try 'arc help'.", $command); | ||||
| if ($maybe) { | if ($maybe) { | ||||
| $message .= "\n\n".pht("Did you mean:")."\n"; | $message .= "\n\n".pht('Did you mean:')."\n"; | ||||
| sort($maybe); | sort($maybe); | ||||
| foreach ($maybe as $other) { | foreach ($maybe as $other) { | ||||
| $message .= " ".$other."\n"; | $message .= " ".$other."\n"; | ||||
| } | } | ||||
| } | } | ||||
| throw new ArcanistUsageException($message); | throw new ArcanistUsageException($message); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||