1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-09 16:32:39 +01:00

Make "aliases" show up in "arc get-config" help

Summary: Fixes T11758. This was one some spooky magic but is more-or-less a normal config setting now.

Test Plan:
  - Ran `arc get-config`, saw help about "aliases".
  - Ran `arc set-config aliases`, saw guidance about using `arc alias`.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11758

Differential Revision: https://secure.phabricator.com/D16745
This commit is contained in:
epriestley 2016-10-21 14:43:13 -07:00
parent 2962504855
commit fad8584431

View file

@ -169,6 +169,11 @@ final class ArcanistSettings extends Phobject {
'default' => false,
'example' => 'false',
),
'aliases' => array(
'type' => 'aliases',
'help' => pht(
'Configured command aliases. Use "arc alias" to define aliases.'),
),
);
}
@ -263,6 +268,12 @@ final class ArcanistSettings extends Phobject {
break;
case 'wild':
break;
case 'aliases':
throw new Exception(
pht(
'Use "arc alias" to configure aliases, not "arc set-config".'));
break;
}
return $value;
@ -296,6 +307,7 @@ final class ArcanistSettings extends Phobject {
}
break;
case 'wild':
case 'aliases':
break;
}