From 853b29f65d8e185a6b01fae2aa3a6daa99b7ae58 Mon Sep 17 00:00:00 2001 From: Thiago Perrotta Date: Wed, 27 Sep 2023 14:51:20 +0000 Subject: [PATCH] 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 Reviewed-by: Joanna Wang --- git_cl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git_cl.py b/git_cl.py index d1936ecea..2fa2bd18b 100755 --- a/git_cl.py +++ b/git_cl.py @@ -4940,8 +4940,10 @@ def CMDupload(parser, args): '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 @@ def CMDsplit(parser, args): 'infra-dev@chromium.org with any questions.') parser.add_option( '-a', + '--auto-submit', '--enable-auto-submit', action='store_true', dest='enable_auto_submit',