argparse argument setting update

This commit is contained in:
samuelgregorovic 2021-07-06 17:34:14 +02:00
parent 6f1362e80e
commit cb5e6a6bad
2 changed files with 3 additions and 4 deletions

View file

@ -341,12 +341,11 @@ def parse_args(args=[]):
"Specifies alternate config to be used",
textwrap.dedent("Applies alternate config for current session"),
)
alternate_config.add_argument(
"--config-file",
dest="config_file",
action="config_file",
dest="config_file_path",
type=str,
nargs=1,
default="",
help="""
Overrides default (created when first installed) config file for this command only.

View file

@ -36,7 +36,7 @@ def run(args):
# Load the config, and extract journal name
try:
config = install.load_or_install_jrnl(args.config_file)
config = install.load_or_install_jrnl(args.config_file_path)
original_config = config.copy()
# Apply config overrides