Skip to content

fix: add --version flag to CLI#27

Merged
mark-pro merged 1 commit intooneirosoft:mainfrom
don-petry:fix/version-flag
Apr 1, 2026
Merged

fix: add --version flag to CLI#27
mark-pro merged 1 commit intooneirosoft:mainfrom
don-petry:fix/version-flag

Conversation

@don-petry
Copy link
Copy Markdown
Contributor

Summary

  • Adds #[command(version)] attribute to the Cli struct so that dgr --version prints the crate version from Cargo.toml.

Refs #11 (item 7).

Test plan

  • Run cargo run -- --version and confirm it prints the version string
  • Run cargo run -- --help and confirm --version appears in the output

🤖 Generated with Claude Code

Closes oneirosoft#11 item 7.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 31, 2026 02:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds first-class --version support to the dgr CLI by enabling clap’s built-in version flag on the root Cli parser, so dgr --version prints the crate version from Cargo.toml (refs #11 item 7).

Changes:

  • Enable clap’s --version flag via #[command(version)] on the top-level CLI struct.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mark-pro mark-pro merged commit 463958f into oneirosoft:main Apr 1, 2026
4 of 5 checks passed
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.

3 participants