Skip to content

Commit cb05a2d

Browse files
committed
Turn --config into a Path
1 parent 0badb73 commit cb05a2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bpython/args.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import logging
3131
import os
3232
import sys
33+
from pathlib import Path
3334

3435
from . import __version__, __copyright__
3536
from .config import default_config_path, loadini, Struct
@@ -102,6 +103,7 @@ def callback(group):
102103
parser.add_argument(
103104
"--config",
104105
default=default_config_path(),
106+
type=Path,
105107
help=_("Use CONFIG instead of default config file."),
106108
)
107109
parser.add_argument(

0 commit comments

Comments
 (0)