mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 19:39:51 +03:00
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.
This commit is contained in:
parent
4844719b1d
commit
b0d4244b38
1 changed files with 2 additions and 1 deletions
|
@ -39,9 +39,10 @@ def arguments_export(subparser):
|
||||||
def arguments_flasher(subparser):
|
def arguments_flasher(subparser):
|
||||||
ret = subparser.add_parser("flasher", help="flash something to the"
|
ret = subparser.add_parser("flasher", help="flash something to the"
|
||||||
" target device")
|
" target device")
|
||||||
sub = ret.add_subparsers(dest="action_flasher")
|
|
||||||
ret.add_argument("--method", help="override flash method",
|
ret.add_argument("--method", help="override flash method",
|
||||||
dest="flash_method", default=None)
|
dest="flash_method", default=None)
|
||||||
|
sub = ret.add_subparsers(dest="action_flasher")
|
||||||
|
sub.required = True
|
||||||
|
|
||||||
# Boot, flash kernel
|
# Boot, flash kernel
|
||||||
boot = sub.add_parser("boot", help="boot a kernel once")
|
boot = sub.add_parser("boot", help="boot a kernel once")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue