Skip to content

Commit

Permalink
Distinguish version and short version metadata to make --help clearer
Browse files Browse the repository at this point in the history
Fixes #774
  • Loading branch information
Wilfred committed Oct 23, 2024
1 parent c396bb0 commit 618d8dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 618d8dd

Please sign in to comment.