Skip to content

Commit 76c033f

Browse files
baldawarishiclaude
andauthored
feat: add --version flag to CLI (#12)
## Summary - Adds `version` to the `#[command(...)]` clap attribute so `aittributor --version` prints the version from `Cargo.toml` - One-line change in `src/main.rs` ## Test plan - [x] Verified `aittributor --version` outputs `aittributor 0.4.0` - [x] Temporarily changed version to `99.99.99` and confirmed output updated accordingly - [x] Reverted version back to `0.4.0` and confirmed correct output 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 392d127 commit 76c033f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use agent::Agent;
1212
use git::{append_trailers, find_git_root};
1313

1414
#[derive(Parser)]
15-
#[command(name = "aittributor")]
15+
#[command(name = "aittributor", version)]
1616
#[command(about = "Git prepare-commit-msg hook that adds AI agent attribution")]
1717
struct Cli {
1818
/// Path to the commit message file

0 commit comments

Comments
 (0)