diff --git a/scripts/symbols/clear_repository_symbols.php b/scripts/symbols/clear_repository_symbols.php --- a/scripts/symbols/clear_repository_symbols.php +++ b/scripts/symbols/clear_repository_symbols.php @@ -6,7 +6,7 @@ $args = new PhutilArgumentParser($argv); $args->setSynopsis(<<parse( array( array( - 'name' => 'callsign', + 'name' => 'repository', 'wildcard' => true, ), )); -$callsigns = $args->getArg('callsign'); -if (count($callsigns) !== 1) { +$identifiers = $args->getArg('repository'); +if (count($identifiers) !== 1) { $args->printHelpAndExit(); } -$callsign = head($callsigns); +$identifier = head($identifiers); $repository = id(new PhabricatorRepositoryQuery()) ->setViewer(PhabricatorUser::getOmnipotentUser()) - ->withCallsigns($callsigns) + ->withIdentifiers($identifiers) ->executeOne(); if (!$repository) { - echo pht("Repository '%s' does not exist.", $callsign); + echo tsprintf( + "%s\n", + pht('Repository "%s" does not exist.', $identifier)); exit(1); } diff --git a/scripts/symbols/import_repository_symbols.php b/scripts/symbols/import_repository_symbols.php --- a/scripts/symbols/import_repository_symbols.php +++ b/scripts/symbols/import_repository_symbols.php @@ -6,7 +6,7 @@ $args = new PhutilArgumentParser($argv); $args->setSynopsis(<< 'callsign', + 'name' => 'repository', 'wildcard' => true, ), )); -$callsigns = $args->getArg('callsign'); -if (count($callsigns) !== 1) { +$identifiers = $args->getArg('repository'); +if (count($identifiers) !== 1) { $args->printHelpAndExit(); } -$callsign = head($callsigns); +$identifier = head($identifiers); $repository = id(new PhabricatorRepositoryQuery()) ->setViewer(PhabricatorUser::getOmnipotentUser()) - ->withCallsigns($callsigns) + ->withIdentifiers($identifiers) ->executeOne(); if (!$repository) { - echo pht("Repository '%s' does not exist.", $callsign); + echo tsprintf( + "%s\n", + pht('Repository "%s" does not exist.', $identifier)); exit(1); }