[PATCH v2 04/28] binman: Give a sensible error if no command is given
Simon Glass
sjg at chromium.org
Tue Oct 27 00:40:02 CET 2020
At present if 'binman' is typed on the command line, a strange error about
a missing argument is displayed. Fix this.
These does not seem to be standard way to add the 'required' argument in
all recent Python versions, so set it manually.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
tools/binman/cmdline.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/binman/cmdline.py b/tools/binman/cmdline.py
index bb4d9d1288b..c007d0a036d 100644
--- a/tools/binman/cmdline.py
+++ b/tools/binman/cmdline.py
@@ -37,6 +37,7 @@ controlled by a description in the board device tree.'''
'3=info, 4=detail, 5=debug')
subparsers = parser.add_subparsers(dest='cmd')
+ subparsers.required = True
build_parser = subparsers.add_parser('build', help='Build firmware image')
build_parser.add_argument('-a', '--entry-arg', type=str, action='append',
--
2.29.0.rc2.309.g374f81d7ae-goog
More information about the U-Boot
mailing list