{"record":{"id":"6b5a4ef94cc1ae94","repo":"phacility/phabricator","slug":"specify-a-item-with-s","errorCode":null,"errorMessage":"Specify a item with %s.","messagePattern":"Specify a item with (.+?)\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/nuance/management/NuanceManagementWorkflow.php","lineNumber":70,"sourceCode":"\n      throw new PhutilArgumentUsageException($message);\n    } else if (count($sources) > 1) {\n      $message = pht(\n        'More than one source matches \"%s\". Choose a narrower query, or '.\n        'use an ID or PHID to select a source. Matching sources: %s.',\n        $source,\n        implode(', ', mpull($sources, 'getName')));\n\n      throw new PhutilArgumentUsageException($message);\n    }\n\n    return head($sources);\n  }\n\n  protected function loadITem(PhutilArgumentParser $argv, $key) {\n    $item = $argv->getArg($key);\n    if (!strlen($item)) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify a item with %s.',\n          '--'.$key));\n    }\n\n    $query = id(new NuanceItemQuery())\n      ->setViewer($this->getViewer())\n      ->setRaisePolicyExceptions(true);\n\n    $type_unknown = PhabricatorPHIDConstants::PHID_TYPE_UNKNOWN;\n\n    if (ctype_digit($item)) {\n      $kind = 'id';\n      $query->withIDs(array($item));\n    } else if (phid_get_type($item) !== $type_unknown) {\n      $kind = 'phid';\n      $query->withPHIDs($item);\n    } else {","sourceCodeStart":52,"sourceCodeEnd":88,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/nuance/management/NuanceManagementWorkflow.php#L52-L88","documentation":"Error \"Specify a item with %s.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/nuance/management/NuanceManagementWorkflow.php:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}