parse: arguments: fix type of --config (MR 2347)

Add the missing runtime conversion when --config is given on the
cmdline.

This expects a pathlib.Path object as the argument, but args.config is
only a string.
This commit is contained in:
Clayton Craft 2024-07-04 13:36:40 -07:00 committed by Caleb Connolly
parent 852b8d6c7d
commit 0a60750684
No known key found for this signature in database
GPG key ID: 0583312B195F64B6

View file

@ -816,8 +816,9 @@ def get_parser():
"-c",
"--config",
dest="config",
type=lambda x: Path(x),
default=pmb.config.defaults["config"],
help="path to pmbootstrap.cfg file (default in" " ~/.config/)",
help="path to pmbootstrap.cfg file (default in ~/.config/)",
)
parser.add_argument(
"-mp",