summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/options.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/options.rs b/src/options.rs
index 5cdeab7cac..be9d3a055f 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -94,7 +94,8 @@ impl Default for DiffOptions {
fn app() -> clap::Command<'static> {
Command::new("Difftastic")
.override_usage(USAGE)
- .version(VERSION.as_str())
+ .version(env!("CARGO_PKG_VERSION"))
+ .long_version(VERSION.as_str())
.about(crate_description!())
.author(crate_authors!())
.after_long_help(concat!(