fix: bind CLI --version to crate version (credit: @leeguooooo #4)

pull/13/head
jackwener 2026-04-18 01:55:37 +08:00
parent c564438994
commit bfb7048cf0
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ use clap::{Parser, Subcommand};
/// wx — 微信本地数据 CLI /// wx — 微信本地数据 CLI
#[derive(Parser)] #[derive(Parser)]
#[command(name = "wx", version = "0.1.0", about = "wx — 微信本地数据 CLI")] #[command(name = "wx", version = env!("CARGO_PKG_VERSION"), about = "wx — 微信本地数据 CLI")]
pub struct Cli { pub struct Cli {
#[command(subcommand)] #[command(subcommand)]
command: Commands, command: Commands,