aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-18 14:58:47 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-18 14:58:47 +0000
commit6d28e8d6ad9fb1b6117fe9a88b6f83a413f223d5 (patch)
tree466a7f2fdfdfcd3463aef399c8e31d51d55fe183
parent1f6f0a8a7e1bd173b8ef2e545f4308ccc61071da (diff)
rebaseline.py: make builder names copy-pastable from --help output
BUG=skia:1653 (SkipBuildbotRuns) R=bsalomon@google.com Review URL: https://codereview.chromium.org/23514068 git-svn-id: http://skia.googlecode.com/svn/trunk@11347 2bbb7eff-a529-9590-31e7-b0007b416f81
-rwxr-xr-xtools/rebaseline.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/rebaseline.py b/tools/rebaseline.py
index 19d705b71c..502bcc9ba5 100755
--- a/tools/rebaseline.py
+++ b/tools/rebaseline.py
@@ -329,7 +329,10 @@ class JsonRebaseliner(object):
# main...
-parser = argparse.ArgumentParser()
+parser = argparse.ArgumentParser(
+ formatter_class=argparse.RawDescriptionHelpFormatter,
+ epilog='Here is the full set of builders we know about:' +
+ '\n '.join([''] + sorted(TEST_BUILDERS)))
parser.add_argument('--actuals-base-url',
help=('base URL from which to read files containing JSON '
'summaries of actual GM results; defaults to '
@@ -351,8 +354,8 @@ parser.add_argument('--bugs', metavar='BUG', type=int, nargs='+',
'pertain to this set of rebaselines.'))
parser.add_argument('--builders', metavar='BUILDER', nargs='+',
help=('which platforms to rebaseline; '
- 'if unspecified, rebaseline all platforms, same as '
- '"--builders %s"' % ' '.join(sorted(TEST_BUILDERS))))
+ 'if unspecified, rebaseline all known platforms '
+ '(see below for a list)'))
# TODO(epoger): Add test that exercises --configs argument.
parser.add_argument('--configs', metavar='CONFIG', nargs='+',
help=('which configurations to rebaseline, e.g. '