From a5a77ca71d9b52c00092e3a96d3b8048aa5d7515 Mon Sep 17 00:00:00 2001 From: dpranke Date: Thu, 16 Jul 2015 16:24:17 -0700 Subject: Re-land "Update docs and command line flags for MB." This patch re-lands {#338951} https://crrev.com/747cb269970294b7928ca30a3cde192c90072d13 with the necessary fix (a missing command-line arg). TBR=maruel@chromium.org Review URL: https://codereview.chromium.org/1234343005 Cr-Commit-Position: refs/heads/master@{#339164} --- tools/mb/mb.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tools/mb/mb.py') diff --git a/tools/mb/mb.py b/tools/mb/mb.py index e7ef57b..294e501 100755 --- a/tools/mb/mb.py +++ b/tools/mb/mb.py @@ -65,8 +65,8 @@ class MetaBuildWrapper(object): help='Do a dry run (i.e., do nothing, just print ' 'the commands that will run)') subp.add_argument('-q', '--quiet', action='store_true', - help='Do not print anything, just return an exit ' - 'code.') + help='Do not print anything on success, ' + 'just return an exit code.') subp.add_argument('-v', '--verbose', action='count', help='verbose logging (may specify multiple times).') @@ -108,7 +108,13 @@ class MetaBuildWrapper(object): subp = subps.add_parser('validate', help='validate the config file') - AddCommonOptions(subp) + subp.add_argument('-f', '--config-file', metavar='PATH', + default=self.default_config, + help='path to config file ' + '(default is //tools/mb/mb_config.pyl)') + subp.add_argument('-q', '--quiet', action='store_true', + help='Do not print anything on success, ' + 'just return an exit code.') subp.set_defaults(func=self.CmdValidate) subp = subps.add_parser('help', -- cgit v1.1