Skip to content

Commit

Permalink
fix: print logs dir with --version command
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Aug 13, 2024
1 parent bf67b32 commit 1ca6127
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gptme/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
@click.option(
"--version",
is_flag=True,
help="Show version.",
help="Show version and configuration information",
)
def main(
prompts: list[str],
Expand All @@ -120,8 +120,12 @@ def main(
):
"""Main entrypoint for the CLI."""
if version:
# print version and exit
# print version
print_builtin(f"gptme {importlib.metadata.version('gptme-python')}")

# print dirs
print_builtin(f"Logs dir: {get_logs_dir()}")

exit(0)

if "PYTEST_CURRENT_TEST" in os.environ:
Expand Down

0 comments on commit 1ca6127

Please sign in to comment.