summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-06-01 22:25:31 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-06-01 22:26:28 +0200
commit5c109747e5d279cb3629503a4a18f6666c4daf29 (patch)
tree8976174dccbb53cb03f7299995947e6cff2fafd6
parenteac76770eadb1a1cd481d9301d294934e1af82ad (diff)
tool, sqv: Use CARGO_PKG_VERSION.
-rw-r--r--sqv/src/sqv_cli.rs2
-rw-r--r--tool/src/sq_cli.rs2
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")