Changeset View
Changeset View
Standalone View
Standalone View
src/inspector/ArcanistBrowseRefInspector.php
| Show All 9 Lines | final class ArcanistBrowseRefInspector | ||||
| public function newInspectRef(array $argv) { | public function newInspectRef(array $argv) { | ||||
| if (count($argv) !== 1) { | if (count($argv) !== 1) { | ||||
| throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
| pht( | pht( | ||||
| 'Expected exactly one argument to "browse(...)" with a '. | 'Expected exactly one argument to "browse(...)" with a '. | ||||
| 'token.')); | 'token.')); | ||||
| } | } | ||||
| return id(new ArcanistBrowseRefPro()) | return id(new ArcanistBrowseRef()) | ||||
| ->setToken($argv[0]); | ->setToken($argv[0]); | ||||
| } | } | ||||
| } | } | ||||