Add short option for --bot in submit_try

(SkipBuildbotRuns)
Review URL: https://codereview.chromium.org/13133011

git-svn-id: http://skia.googlecode.com/svn/trunk@8460 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
borenet@google.com 2013-04-01 17:59:16 +00:00
parent ee040a7422
commit 02009c781d

View File

@ -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: