forked from Mirror/pmbootstrap
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:
parent
852b8d6c7d
commit
0a60750684
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue