Distinguish version and short version metadata to make --help clearer

Fixes #774
pull/779/head
Wilfred Hughes 2024-10-23 08:44:28 +07:00
parent c396bb0102
commit 618d8dd8ad
1 changed files with 2 additions and 1 deletions

@ -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!(