Use project and author information from Cargo.toml

Prevents duplication.
html_output
Wilfred Hughes 2022-01-29 15:38:44 +07:00
parent 2762e35cf9
commit ebd923acbe
2 changed files with 4 additions and 4 deletions

@ -1,6 +1,6 @@
[package]
name = "difftastic"
description = "A syntactic diffing tool"
description = "A syntactic diff"
repository = "https://github.com/wilfred/difftastic"
homepage = "http://difftastic.wilfred.me.uk/"
license = "MIT"

@ -44,7 +44,7 @@ use mimalloc::MiMalloc;
static GLOBAL: MiMalloc = MiMalloc;
use atty::Stream;
use clap::{crate_version, App, AppSettings, Arg};
use clap::{crate_authors, crate_description, crate_version, App, AppSettings, Arg};
use sliders::fix_all_sliders;
use std::{env, path::Path};
use summary::DiffResult;
@ -110,8 +110,8 @@ enum Mode {
fn app() -> clap::App<'static> {
App::new("Difftastic")
.version(crate_version!())
.about("A syntax aware diff.")
.author("Wilfred Hughes")
.about(crate_description!())
.author(crate_authors!())
.arg(
Arg::new("dump-syntax")
.long("dump-syntax")