@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1#!/usr/bin/env php
2<?php
3
4$root = dirname(dirname(dirname(__FILE__)));
5require_once $root.'/scripts/__init_script__.php';
6
7$args = new PhutilArgumentParser($argv);
8$args->setSynopsis(pht(<<<EOSYNOPSIS
9**user** __command__ [__options__]
10 Modify user accounts to regain access to an install.
11
12EOSYNOPSIS
13 ));
14$args->parseStandardArguments();
15
16$workflows = id(new PhutilClassMapQuery())
17 ->setAncestorClass(PhabricatorPeopleManagementWorkflow::class)
18 ->execute();
19$workflows[] = new PhutilHelpArgumentWorkflow();
20$args->parseWorkflows($workflows);