pmb.parse.arguments: don't use python 3.9 feature
Replace action=argparse.BooleanOptionalAction with action="store_true" so it still works with Python 3.8 and 3.7. These aren't EOL yet, and unless we have a good reason to drop support for them, we can still support them. The purpose of vermin ("pmbootstrap ci vermin") would be to warn about this, filed a bug that it didn't catch it: https://github.com/netromdk/vermin/issues/168 Reviewed-by: Luca Weiss <luca@z3ntu.xyz> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230326164931.2390-1-ollieparanoid@postmarketos.org%3E
This commit is contained in:
parent
7125412f07
commit
05675321d6
|
@ -366,7 +366,7 @@ def arguments_qemu(subparser):
|
|||
ret.add_argument("--host-qemu", dest="host_qemu", action='store_true',
|
||||
help="Use the host system's qemu")
|
||||
|
||||
ret.add_argument("--efi", action=argparse.BooleanOptionalAction,
|
||||
ret.add_argument("--efi", action="store_true",
|
||||
help="Use EFI boot (default: direct kernel image boot)")
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Reference in New Issue