Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannah Bast committed Aug 15, 2024
1 parent eb59a0c commit ca66e92
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/qlever/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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}"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit ca66e92

Please sign in to comment.