mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 14:22:40 +01:00
Alias newer "--library" to "--load-phutil-library" in legacy workflows
Summary: See PHI1772. This is a quick patch to make some debugging/testing tasks easier until remaining workflows modernize. See T13490. Test Plan: Ran `scripts/arcanist.php --library ...`, got the same behavior as `scripts/arcanist.php --load-phutil-library ...`. Differential Revision: https://secure.phabricator.com/D21323
This commit is contained in:
parent
0a4a841f8f
commit
8b973bf439
1 changed files with 9 additions and 1 deletions
|
@ -55,6 +55,12 @@ $base_args->parsePartial(
|
|||
'help' => pht('Load a libphutil library.'),
|
||||
'repeat' => true,
|
||||
),
|
||||
array(
|
||||
'name' => 'library',
|
||||
'param' => 'path',
|
||||
'help' => pht('Load a library (same as --load-phutil-library).'),
|
||||
'repeat' => true,
|
||||
),
|
||||
array(
|
||||
'name' => 'arcrc-file',
|
||||
'param' => 'filename',
|
||||
|
@ -89,7 +95,9 @@ $force_conduit = $base_args->getArg('conduit-uri');
|
|||
$force_token = $base_args->getArg('conduit-token');
|
||||
$custom_arcrc = $base_args->getArg('arcrc-file');
|
||||
$is_anonymous = $base_args->getArg('anonymous');
|
||||
$load = $base_args->getArg('load-phutil-library');
|
||||
$load = array_merge(
|
||||
$base_args->getArg('load-phutil-library'),
|
||||
$base_args->getArg('library'));
|
||||
$help = $base_args->getArg('help');
|
||||
$args = array_values($base_args->getUnconsumedArgumentVector());
|
||||
|
||||
|
|
Loading…
Reference in a new issue