Skip to content

fix: add --version flag to CLI - #34

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
garvgupta2711:fix-version-flag
Sep 8, 2026
Merged

fix: add --version flag to CLI#34
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
garvgupta2711:fix-version-flag

Conversation

@garvgupta2711

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a --version flag to the Agentrace CLI.

Previously, running python -m agentrace.cli --version failed because a subcommand was required.

This uses argparse's built-in version action to print the package version.

Testing

  • Added a regression test for --version
  • All 30 tests pass with pytest

Closes #30

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Welcome, @garvgupta2711, and thanks for your first pull request to Agentrace.

A quick look at CONTRIBUTING.md covers how things are set up and run here.

I'll review this shortly. Ask anything in the thread if something is unclear.

@royalpinto007
royalpinto007 merged commit d203120 into AgentPostmortem:main Sep 8, 2026
8 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

And it's in. Thanks @garvgupta2711.

Good, focused change. Exactly the kind of thing Agentrace needs.

If Agentrace is useful to you, a star goes a long way.

Happy to see more from you whenever you have the time.

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.

No --version flag

3 participants