1
0
Fork 1
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:
Caleb Connolly 2024-06-09 04:14:21 +02:00 committed by Oliver Smith
parent efeb09bf5d
commit 084309e756
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 3 additions and 2 deletions

View file

@ -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