Skip to content

feat: add --version flag#41

Merged
sonesuke merged 1 commit intomainfrom
feature/version-flag
Feb 23, 2026
Merged

feat: add --version flag#41
sonesuke merged 1 commit intomainfrom
feature/version-flag

Conversation

@sonesuke
Copy link
Owner

Add automatic version flag using clap's built-in feature.

Changes

  • Added attribute to Cli struct
  • Automatically generates and flags

Usage

$ arxiv-cli --version
arxiv-cli 0.1.2

The version is automatically pulled from Cargo.toml package version.

Add automatic version flag using clap's #[command(version)] attribute.

Shows: arxiv-cli <version> based on Cargo.toml package version.
@sonesuke sonesuke merged commit 1d6b0c1 into main Feb 23, 2026
4 checks passed
@sonesuke sonesuke deleted the feature/version-flag branch February 23, 2026 03:09
@sonesuke sonesuke mentioned this pull request Feb 23, 2026
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.

2 participants