mirror of
https://github.com/jackwener/wx-cli.git
synced 2026-10-08 08:55:46 +00:00
fix: bind CLI --version to crate version (credit: @leeguooooo #4)
This commit is contained in:
+1
-1
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user