Skip to content

fix: add --version and --help flags to CLI#16

Open
jp-cruz wants to merge 2 commits into
mainfrom
fix/version-help-flags
Open

fix: add --version and --help flags to CLI#16
jp-cruz wants to merge 2 commits into
mainfrom
fix/version-help-flags

Conversation

@jp-cruz

@jp-cruz jp-cruz commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • llm-valet --version now prints the installed package version via importlib.metadata (falls back to the module-level _VERSION constant for source installs)
  • llm-valet --help prints usage and exits 0 — handled automatically by argparse
  • Added llm_valet/__main__.py so python -m llm_valet --version / --help also work
  • Both flags exit cleanly without starting the server or requiring a running Ollama instance

All pre-commit hooks passed (ruff, ruff-format, bandit, mypy, gitleaks).

Closes #14

🤖 Generated with Claude Code

jp-cruz and others added 2 commits May 4, 2026 09:10
llm-valet --version now prints the installed package version via
importlib.metadata (falls back to module-level _VERSION constant if
package is not installed). --help exits cleanly without starting the
server.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: --version and --help flags not handled — entry point starts server unconditionally

1 participant