Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistShellCompleteWorkflow.php
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | public function run() { | ||||
| $argv = $this->getArgument('argv', array()); | $argv = $this->getArgument('argv', array()); | ||||
| $argc = count($argv); | $argc = count($argv); | ||||
| if ($pos === null) { | if ($pos === null) { | ||||
| $pos = $argc - 1; | $pos = $argc - 1; | ||||
| } | } | ||||
| if ($pos > $argc) { | if ($pos > $argc) { | ||||
| throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
| 'Specified position is greater than the number of arguments provided.'); | pht( | ||||
| 'Specified position is greater than the number of '. | |||||
| 'arguments provided.')); | |||||
| } | } | ||||
| // Determine which revision control system the working copy uses, so we | // Determine which revision control system the working copy uses, so we | ||||
| // can filter out commands and flags which aren't supported. If we can't | // can filter out commands and flags which aren't supported. If we can't | ||||
| // figure it out, just return all flags/commands. | // figure it out, just return all flags/commands. | ||||
| $vcs = null; | $vcs = null; | ||||
| // We have to build our own because if we requiresWorkingCopy() we'll throw | // We have to build our own because if we requiresWorkingCopy() we'll throw | ||||
| ▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines | |||||