From f860e190f6a3a70f6fb2153886bd362fb8bf9393 Mon Sep 17 00:00:00 2001 From: Nicolas <> Date: Sat, 9 Apr 2022 17:19:03 +0200 Subject: [PATCH] Get meta from cargo --- Cargo.toml | 1 + src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index baa0d46..4ae2874 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/main.rs b/src/main.rs index f4df036..3a92010 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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,