depot_tools: add an `--auto-submit` alias to `--enable-auto-submit`
It is easier to remember.
Bug: none
Change-Id: Ic011c2b0bbbde364b69e5db91566748e72946264
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4892967
Commit-Queue: Thiago Perrotta <tperrotta@chromium.org>
Reviewed-by: Joanna Wang <jojwang@chromium.org>
diff --git a/git_cl.py b/git_cl.py
index d1936ec..2fa2bd1 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -4940,8 +4940,10 @@
'the current branch')
parser.add_option(
'-a',
+ '--auto-submit',
'--enable-auto-submit',
action='store_true',
+ dest='enable_auto_submit',
help='Sends your change to the CQ after an approval. Only '
'works on repos that have the Auto-Submit label '
'enabled')
@@ -5400,6 +5402,7 @@
'infra-dev@chromium.org with any questions.')
parser.add_option(
'-a',
+ '--auto-submit',
'--enable-auto-submit',
action='store_true',
dest='enable_auto_submit',