diff options
author | Wilfred Hughes <me@wilfred.me.uk> | 2024-10-23 08:44:28 -0700 |
---|---|---|
committer | Wilfred Hughes <me@wilfred.me.uk> | 2024-10-23 08:44:28 -0700 |
commit | 618d8dd8adb97601f258a07b99104eaf4e4cbd12 (patch) | |
tree | e3d5e2f73695175ce8501b3bbe8aae897bbf0fb1 /src/options.rs | |
parent | c396bb010224c71a19a5e3fe526d30043d89d4a7 (diff) |
Distinguish version and short version metadata to make --help clearer
Fixes #774
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 3 |
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!( |