summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-05-10 13:05:08 +0200
committerSimon Glass <sjg@chromium.org>2025-05-27 10:07:42 +0100
commit56d33104e1961df27899d335ad55ecf4b9785cbd (patch)
tree5d7d7b45452629ca17a1e5c2a8477e300c550003 /tools
parent0ab5e441e7f7433cad6bf16ea509dfc415a18b4f (diff)
patman: Use -c to show patch comments
We chose -C as the flag to enable showing comments because -c was used in 'patman send' to specify the patch count. Now that the 'send' parser is separated we don't need to do this and it is OK to use the same flag in a different subcommand. We want to have a flag for cover-letter comments, so it makes most sense to have -C for that and -c for patch comments. Update the latter. Put this in a function since the new 'series' command will add this flag too. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/cmdline.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/patman/cmdline.py b/tools/patman/cmdline.py
index 8e10c7bb14f..e34cf126556 100644
--- a/tools/patman/cmdline.py
+++ b/tools/patman/cmdline.py
@@ -111,6 +111,11 @@ def add_send_args(par):
help='Preserve Change-Id tags in patches to send.')
+def _add_show_comments(parser):
+ parser.add_argument('-c', '--show-comments', action='store_true',
+ help='Show comments from each patch')
+
+
def add_send_subparser(subparsers):
"""Add the 'send' subparser
@@ -147,8 +152,7 @@ def add_status_subparser(subparsers):
"""
status = subparsers.add_parser('status',
help='Check status of patches in patchwork')
- status.add_argument('-C', '--show-comments', action='store_true',
- help='Show comments from each patch')
+ _add_show_comments(status)
status.add_argument(
'-d', '--dest-branch', type=str,
help='Name of branch to create with collected responses')