From b0d4244b38ff5280caacd0be8c83494e74e78bef Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 15 Jul 2018 23:33:06 +0200 Subject: [PATCH] pmb: flasher: require action argument With this patch, "pmbootstrap flasher" will fail with "the following arguments are required: action_flasher". Without it, it just prints "Done" and quits. --- pmb/parse/arguments.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmb/parse/arguments.py b/pmb/parse/arguments.py index b4474f20..143830fb 100644 --- a/pmb/parse/arguments.py +++ b/pmb/parse/arguments.py @@ -39,9 +39,10 @@ def arguments_export(subparser): def arguments_flasher(subparser): ret = subparser.add_parser("flasher", help="flash something to the" " target device") - sub = ret.add_subparsers(dest="action_flasher") ret.add_argument("--method", help="override flash method", dest="flash_method", default=None) + sub = ret.add_subparsers(dest="action_flasher") + sub.required = True # Boot, flash kernel boot = sub.add_parser("boot", help="boot a kernel once")