mirror of https://github.com/jackwener/wx-cli.git
fix: bind CLI --version to crate version (credit: @leeguooooo #4)
parent
c564438994
commit
bfb7048cf0
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue