mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1492070, update mach command for compare-locales, #firefox-build-system-reviewers r=firefox-build-system-reviewers,ted
Differential Revision: https://phabricator.services.mozilla.com/D11902 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
5c325428f0
commit
068dc3fde6
@ -28,15 +28,26 @@ class CompareLocales(object):
|
||||
@CommandArgument('locales', nargs='*', metavar='locale-code',
|
||||
help='Locale code and top-level directory of '
|
||||
'each localization')
|
||||
@CommandArgument('-q', '--quiet', action='count',
|
||||
default=0, help='''Show less data.
|
||||
Specified once, don't show obsolete entities. Specified twice, also hide
|
||||
missing entities. Specify thrice to exclude warnings and four times to
|
||||
just show stats''')
|
||||
@CommandArgument('-m', '--merge',
|
||||
help='''Use this directory to stage merged files''')
|
||||
@CommandArgument('--validate', action='store_true',
|
||||
help='Run compare-locales against reference')
|
||||
@CommandArgument('--json',
|
||||
help='''Serialize to JSON. Value is the name of
|
||||
the output file, pass "-" to serialize to stdout and hide the default output.
|
||||
''')
|
||||
@CommandArgument('-D', action='append', metavar='var=value',
|
||||
default=[], dest='defines',
|
||||
help='Overwrite variables in TOML files')
|
||||
@CommandArgument('--unified', action="store_true",
|
||||
help="Show output for all projects unified")
|
||||
@CommandArgument('--full', action="store_true",
|
||||
help="Compare projects that are disabled")
|
||||
@CommandArgument('--return-zero', action="store_true",
|
||||
help="Return 0 regardless of l10n status")
|
||||
def compare(self, **kwargs):
|
||||
from compare_locales.commands import CompareLocales
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user