[Concept,03/37] patman: Fix autolink retry hint argument order

Message ID 20260404213020.372253-4-sjg@u-boot.org
State New
Headers
Series patman: Autolink fixes and AI-assisted patch review |

Commit Message

Simon Glass April 4, 2026, 9:28 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

The error message suggests 'patman series autolink -s <name> -V <ver>'
but argparse requires -s and -V before the subcommand. Fix to:
'patman series -s <name> -V <ver> autolink'

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

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

Patch

diff --git a/tools/patman/cseries.py b/tools/patman/cseries.py
index 0643d44cc01..e75e55c2764 100644
--- a/tools/patman/cseries.py
+++ b/tools/patman/cseries.py
@@ -304,7 +304,7 @@  class Cseries(cser_helper.CseriesHelper):
                 raise ValueError(
                     f"Cannot find series '{desc}'{delay}; "
                     'to try again later:\n'
-                    f"  patman series autolink -s {name} -V {version}")
+                    f'  patman series -s {name} -V {version} autolink')
 
             if options != last_options:
                 tout.clear_progress()