Bug 1492070, update mach command for compare-locales, #firefox-build-system-reviewers r=firefox-build-system-reviewers,ted
authorAxel Hecht <axel@pike.org>
Mon, 03 Dec 2018 12:08:31 +0000
changeset 508449 b46490e922b4b404359830f21aa1f01097201335
parent 508448 408d885bc1319299823b56584b10a2e0cf30c559
child 508450 b41192e679458ff4fcea290f8dd06326fd828ca1
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfirefox-build-system-reviewers, ted
bugs1492070
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
tools/compare-locales/mach_commands.py
--- a/tools/compare-locales/mach_commands.py
+++ b/tools/compare-locales/mach_commands.py
@@ -23,25 +23,36 @@ class CompareLocales(object):
              description='Run source checks on a localization.')
     @CommandArgument('config_paths', metavar='l10n.toml', nargs='+',
                      help='TOML or INI file for the project')
     @CommandArgument('l10n_base_dir', metavar='l10n-base-dir',
                      help='Parent directory of localizations')
     @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
 
         class ErrorHelper(object):
             '''Dummy ArgumentParser to marshall compare-locales
             commandline errors to mach exceptions.
             '''
             def error(self, msg):