Added command-line way to close issues.


BUG=none


Review URL: https://chromiumcodereview.appspot.com/12330131

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@184652 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index e0bf935..e4c3a71 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1797,6 +1797,18 @@
   return 0
 
 
+def CMDset_close(parser, args):
+  """close the issue"""
+  _, args = parser.parse_args(args)
+  if args:
+    parser.error('Unrecognized args: %s' % ' '.join(args))
+  cl = Changelist()
+  # Ensure there actually is an issue to close.
+  cl.GetDescription()
+  cl.CloseIssue()
+  return 0
+
+
 def Command(name):
   return getattr(sys.modules[__name__], 'CMD' + name, None)