parse config file argument as Path
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from dibbler.conf import config
|
from dibbler.conf import config
|
||||||
|
|
||||||
@@ -8,8 +9,9 @@ parser.add_argument(
|
|||||||
"-c",
|
"-c",
|
||||||
"--config",
|
"--config",
|
||||||
help="Path to the config file",
|
help="Path to the config file",
|
||||||
type=str,
|
type=Path,
|
||||||
required=False,
|
metavar="FILE",
|
||||||
|
default="config.ini",
|
||||||
)
|
)
|
||||||
|
|
||||||
subparsers = parser.add_subparsers(
|
subparsers = parser.add_subparsers(
|
||||||
|
|||||||
Reference in New Issue
Block a user