1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Improve help for "bin/policy unlock" to make it explicit that you can name objects with a PHID

Summary: See <https://discourse.phabricator-community.org/t/how-to-unlock-a-portal-to-view-edit-it-as-an-admin-similar-to-tasks/4547/>.

Test Plan: Ran `bin/policy help unlock`, saw explicit "you can use a PHID" documentation.

Differential Revision: https://secure.phabricator.com/D21530
This commit is contained in:
epriestley 2021-01-28 16:30:53 -08:00
parent 9cbbbe2a87
commit 6d5920fa2d

View file

@ -8,9 +8,16 @@ final class PhabricatorPolicyManagementUnlockWorkflow
->setName('unlock')
->setSynopsis(
pht(
'Unlock an object which has policies that prevent it from being '.
'viewed or edited.'))
->setExamples('**unlock** --view __user__ __object__')
'Unlock one or more objects by changing their view policies, edit '.
'policies, or owners.'))
->setHelp(
pht(
'Identify each __object__ by passing an object name '.
'(like "T123") or a PHID (like "PHID-ABCD-1234...").'.
"\n\n".
'Not every type of object has an editable view policy, edit '.
'policy, or owner, so not all modes will work with all objects. '))
->setExamples('**unlock** --view __user__ __object__ ...')
->setArguments(
array(
array(