Changeset View
Changeset View
Standalone View
Standalone View
src/land/engine/ArcanistLandEngine.php
| Show First 20 Lines • Show All 1,355 Lines • ▼ Show 20 Lines | protected function validateArguments() { | ||||
| if ($into_count > 1) { | if ($into_count > 1) { | ||||
| throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
| pht( | pht( | ||||
| 'Arguments "--into-local", "--into-remote", and "--into-empty" '. | 'Arguments "--into-local", "--into-remote", and "--into-empty" '. | ||||
| 'are mutually exclusive.')); | 'are mutually exclusive.')); | ||||
| } | } | ||||
| $into = $this->getIntoArgument(); | $into = $this->getIntoArgument(); | ||||
| if ($into && ($into_empty !== null)) { | if ($into && $into_empty) { | ||||
| throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
| pht( | pht( | ||||
| 'Arguments "--into" and "--into-empty" are mutually exclusive.')); | 'Arguments "--into" and "--into-empty" are mutually exclusive.')); | ||||
| } | } | ||||
| $strategy = $this->selectMergeStrategy(); | $strategy = $this->selectMergeStrategy(); | ||||
| $this->setStrategy($strategy); | $this->setStrategy($strategy); | ||||
| ▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines | |||||