Add an error message when explicitly specifying bots without specifying the master

BUG=352029

Review URL: https://codereview.chromium.org/199723003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@256972 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index eaed4ba..82d5a78 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2184,6 +2184,10 @@
   if not options.name:
     options.name = cl.GetBranch()
 
+  if options.bot and not options.master:
+    parser.error('For manually specified bots please also specify the '
+                 'tryserver master, e.g. "-m tryserver.chromium".')
+
   def GetMasterMap():
     # Process --bot and --testfilter.
     if not options.bot: