Add short option for --bot in submit_try
authorborenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 1 Apr 2013 17:59:16 +0000 (17:59 +0000)
committerborenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 1 Apr 2013 17:59:16 +0000 (17:59 +0000)
(SkipBuildbotRuns)
Review URL: https://codereview.chromium.org/13133011

git-svn-id: http://skia.googlecode.com/svn/trunk@8460 2bbb7eff-a529-9590-31e7-b0007b416f81

tools/submit_try

index 3f299fb..5c3c3e5 100755 (executable)
@@ -148,7 +148,7 @@ def ValidateArgs(argv, trybots, is_svn=True):
 """submit_try: Submit a try request.
 submit_try %s--bot <buildername> [<buildername> ...]
 
---bot               Builder on which to run the try. Required.
+-b, --bot           Builder on which to run the try. Required.
 -h, --help          Show this message.
 -r <revision#>      Revision from which to run the try.
 -l, --list_bots     List the available try builders and exit.
@@ -171,7 +171,7 @@ submit_try %s--bot <buildername> [<buildername> ...]
     elif arg == '-l' or arg == '--list_bots':
       print 'submit_try: Available builders:\n  %s' % '\n  '.join(trybots)
       sys.exit(0)
-    elif arg == '--bot':
+    elif arg == '-b' or arg == '--bot':
       if using_bots:
         Error('--bot specified multiple times.')
       if len(argv) < 1: