From bfb7048cf083008bce2a8bb65c50f6c4dd796958 Mon Sep 17 00:00:00 2001 From: jackwener Date: Sat, 18 Apr 2026 01:55:37 +0800 Subject: [PATCH] fix: bind CLI --version to crate version (credit: @leeguooooo #4) --- src/cli/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 4d493de..b6d0dd4 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -18,7 +18,7 @@ use clap::{Parser, Subcommand}; /// wx — 微信本地数据 CLI #[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 { #[command(subcommand)] command: Commands,