diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-26 17:40:02 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 14:42:59 -0600 |
commit | 680e3c6edb9aa5cf400a5b22ecfa3a40b0b247e5 (patch) | |
tree | 5589d1e5d6630bfa049e5859b694dd48f009063b | |
parent | f2c0dd85ad6cbf8b53ad5fc423a0177a0eb7fe6f (diff) | |
download | u-boot-680e3c6edb9aa5cf400a5b22ecfa3a40b0b247e5.zip u-boot-680e3c6edb9aa5cf400a5b22ecfa3a40b0b247e5.tar.gz u-boot-680e3c6edb9aa5cf400a5b22ecfa3a40b0b247e5.tar.bz2 |
binman: Give a sensible error if no command is given
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@chromium.org>
-rw-r--r-- | tools/binman/cmdline.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/cmdline.py b/tools/binman/cmdline.py index bb4d9d1..c007d0a 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', |