{"record":{"id":"da4517b35d3d1dde","repo":"phacility/phabricator","slug":"specify-the-configuration-key-you-want-to-set","errorCode":null,"errorMessage":"Specify the configuration key you want to set.","messagePattern":"Specify the configuration key you want to set\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php","lineNumber":35,"sourceCode":"            'help'  => pht(\n              'Update configuration in the database instead of '.\n              'in local configuration.'),\n          ),\n          array(\n            'name' => 'stdin',\n            'help' => pht('Read option value from stdin.'),\n          ),\n          array(\n            'name'      => 'args',\n            'wildcard'  => true,\n          ),\n        ));\n  }\n\n  public function execute(PhutilArgumentParser $args) {\n    $argv = $args->getArg('args');\n    if (!$argv) {\n      throw new PhutilArgumentUsageException(\n        pht('Specify the configuration key you want to set.'));\n    }\n\n    $is_stdin = $args->getArg('stdin');\n\n    $key = $argv[0];\n\n    if ($is_stdin) {\n      if (count($argv) > 1) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'Too many arguments: expected only a configuration key when '.\n            'using \"--stdin\".'));\n      }\n\n      fprintf(STDERR, tsprintf(\"%s\\n\", pht('Reading value from stdin...')));\n      $value = file_get_contents('php://stdin');\n    } else {","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php#L17-L53","documentation":"Error \"Specify the configuration key you want to set.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:35 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"}