From ca66e9227390d6a8f48a65cacf49ee7ad7d2a2f2 Mon Sep 17 00:00:00 2001 From: Hannah Bast Date: Thu, 15 Aug 2024 17:03:15 +0200 Subject: [PATCH] Fix minor bug --- src/qlever/commands/config.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/qlever/commands/config.py b/src/qlever/commands/config.py index e995250a..29172c2d 100644 --- a/src/qlever/commands/config.py +++ b/src/qlever/commands/config.py @@ -33,7 +33,7 @@ def relevant_qleverfile_arguments(self) -> dict[str: list[str]]: def additional_arguments(self, subparser) -> None: subparser.add_argument( - "--get-preconfigured-qleverfile", type=str, + "--get-qleverfile", type=str, choices=self.qleverfile_names, help="Get one the many pre-configured Qleverfiles") subparser.add_argument( @@ -152,9 +152,10 @@ def execute(self, args) -> bool: return True # Get one of the pre-configured Qleverfiles. - if args.get_preconfigured_qleverfile: + if args.get_qleverfile: + config_name = args.get_qleverfile preconfigured_qleverfile_path = \ - self.qleverfiles_path / f"Qleverfile.{args.config_name}" + self.qleverfiles_path / f"Qleverfile.{config_name}" random_string = get_random_string(12) setup_config_cmd = ( f"cat {preconfigured_qleverfile_path}" @@ -185,7 +186,7 @@ def execute(self, args) -> bool: return False # If we get here, everything went well. - log.info(f"Created Qleverfile for config \"{args.config_name}\"" + log.info(f"Created Qleverfile for config \"{config_name}\"" f" in current directory") return True