From 5c109747e5d279cb3629503a4a18f6666c4daf29 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Sat, 1 Jun 2019 22:25:31 +0200 Subject: tool, sqv: Use CARGO_PKG_VERSION. --- sqv/src/sqv_cli.rs | 2 +- tool/src/sq_cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sqv/src/sqv_cli.rs b/sqv/src/sqv_cli.rs index aae472e2..f0826948 100644 --- a/sqv/src/sqv_cli.rs +++ b/sqv/src/sqv_cli.rs @@ -9,7 +9,7 @@ use clap::{App, Arg, AppSettings}; // The argument parser. pub fn build() -> App<'static, 'static> { App::new("sqv") - .version("0.1.0") + .version(env!("CARGO_PKG_VERSION")) .about("sqv is a command-line OpenPGP signature verification tool.") .setting(AppSettings::ArgRequiredElseHelp) .arg(Arg::with_name("keyring").value_name("FILE") diff --git a/tool/src/sq_cli.rs b/tool/src/sq_cli.rs index 535d5b22..b71a5be3 100644 --- a/tool/src/sq_cli.rs +++ b/tool/src/sq_cli.rs @@ -8,7 +8,7 @@ use clap::{App, Arg, ArgGroup, SubCommand, AppSettings}; pub fn build() -> App<'static, 'static> { App::new("sq") - .version("0.1.0") + .version(env!("CARGO_PKG_VERSION")) .about("Sequoia is an implementation of OpenPGP. This is a command-line frontend.") .setting(AppSettings::SubcommandRequiredElseHelp) .arg(Arg::with_name("home").value_name("DIRECTORY") -- cgit v1.2.3