mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
parse: arguments: typing improvements (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
efeb09bf5d
commit
084309e756
2 changed files with 3 additions and 2 deletions
|
@ -666,7 +666,7 @@ def get_parser():
|
|||
parser.add_argument("-B", "--boot-size",
|
||||
help="specify an integer with your preferred boot"
|
||||
"partition size on target machine in MB (default"
|
||||
" 128)")
|
||||
f" {Config.get_default('boot_size')})")
|
||||
parser.add_argument("-p", "--aports",
|
||||
help="postmarketos aports (pmaports) path",
|
||||
type=lambda x: [Path(p.strip()) for p in x.split(",")])
|
||||
|
@ -914,7 +914,7 @@ def get_parser():
|
|||
|
||||
# Action: apkindex_parse
|
||||
apkindex_parse = sub.add_parser("apkindex_parse")
|
||||
apkindex_parse.add_argument("apkindex_path")
|
||||
apkindex_parse.add_argument("apkindex_path", type=lambda x: Path(x))
|
||||
add_packages_arg(apkindex_parse, "package", nargs="?")
|
||||
|
||||
# Action: config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue