parse config file argument as Path

This commit is contained in:
2025-12-10 15:54:32 +09:00
parent 7d2ae55e05
commit f0cfb7748b

View File

@@ -1,4 +1,5 @@
import argparse
from pathlib import Path
from dibbler.conf import config
@@ -8,8 +9,9 @@ parser.add_argument(
"-c",
"--config",
help="Path to the config file",
type=str,
required=False,
type=Path,
metavar="FILE",
default="config.ini",
)
subparsers = parser.add_subparsers(