Get meta from cargo

This commit is contained in:
Nicolas 2022-04-09 17:19:03 +02:00
parent 09d07018dc
commit f860e190f6
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ edition = "2021"
license = "MIT"
description = "Wipe your terminal with a random animation."
repository = "https://github.com/ricoriedel/wipe"
authors = ["Rico Riedel"]
[dependencies]
anyhow = "1.0"

View File

@ -54,7 +54,7 @@ enum FillModeType {
}
#[derive(Parser)]
#[clap(author = "Rico Riedel", version = "0.1.0", about = "Wipe your terminal with a random animation.")]
#[clap(author = env!("CARGO_PKG_AUTHORS"), version = env!("CARGO_PKG_VERSION"), about = env!("CARGO_PKG_DESCRIPTION"))]
struct Args {
#[clap(short, long, help = "Add animation", arg_enum)]
animation: Vec<AnimationType>,