[Concept,13/29] patman: Add -d short option for --create-drafts

Message ID 20260501110040.1874719-14-sjg@u-boot.org
State New
Headers
Series patman: Review-flow improvements and shared helpers |

Commit Message

Simon Glass May 1, 2026, 11 a.m. UTC
  From: Simon Glass <sjg@chromium.org>

Add a single-character shortcut so that creating Gmail drafts during
review can be requested with 'patman review -d' instead of the longer
'patman review --create-drafts'

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/patman/cmdline.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/tools/patman/cmdline.py b/tools/patman/cmdline.py
index 13aa63b76c8..758d84c0397 100644
--- a/tools/patman/cmdline.py
+++ b/tools/patman/cmdline.py
@@ -555,7 +555,7 @@  def add_review_subparser(subparsers):
         default=False,
         help='Show what would be done without creating drafts')
     review.add_argument(
-        '--create-drafts', action='store_true',
+        '-d', '--create-drafts', action='store_true',
         help='Create Gmail draft emails for each review')
     review.add_argument(
         '--gmail-account', type=str, default=None,