Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(709)

Unified Diff: tools/mb/mb.py

Issue 1234343005: Re-land "Update docs and command line flags for MB." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing command line argument Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/mb/docs/user_guide.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/mb/mb.py
diff --git a/tools/mb/mb.py b/tools/mb/mb.py
index e7ef57b63efe391f2cb8df238839cd744240b8ee..294e501c081b8372ac8a8c597968ada7740e00af 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)')
M-A Ruel 2015/07/17 01:17:13 default is %default ?
Dirk Pranke 2015/07/17 01:22:48 We don't want that because the actual default is a
M-A Ruel 2015/07/17 01:25:27 ok!
+ 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',
« no previous file with comments | « tools/mb/docs/user_guide.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698