summaryrefslogtreecommitdiffstats
path: root/tools/mb/mb.py
diff options
context:
space:
mode:
authordpranke <dpranke@chromium.org>2015-07-16 16:24:17 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-16 23:25:03 +0000
commita5a77ca71d9b52c00092e3a96d3b8048aa5d7515 (patch)
tree3de7eafcf5013eda5fa19dbf5706d190a33f0f6f /tools/mb/mb.py
parentb8f4a80266d3f30731ab7f5eb3b9ff4211651042 (diff)
downloadchromium_src-a5a77ca71d9b52c00092e3a96d3b8048aa5d7515.zip
chromium_src-a5a77ca71d9b52c00092e3a96d3b8048aa5d7515.tar.gz
chromium_src-a5a77ca71d9b52c00092e3a96d3b8048aa5d7515.tar.bz2
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}
Diffstat (limited to 'tools/mb/mb.py')
-rwxr-xr-xtools/mb/mb.py12
1 files changed, 9 insertions, 3 deletions
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',