diff --git a/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php b/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php index b20c91cbff..0da6332268 100644 --- a/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php +++ b/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php @@ -87,10 +87,34 @@ final class PhabricatorConfigManagementSetWorkflow default: $value = json_decode($value, true); if (!is_array($value)) { - throw new PhutilArgumentUsageException(pht( - "Config key '%s' is of type '%s'. Specify it in JSON.", - $key, - $type)); + switch ($type) { + case 'set': + $message = pht( + "Config key '%s' is of type '%s'. Specify it in JSON. ". + "For example:\n\n". + ' ./bin/config set \'{"value1": true, "value2": true}\''. + "\n", + $key, + $type); + break; + default: + if (preg_match('/^list