From a5f08b0258f172cb5164823a34a5891a1998f517 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Fri, 30 Apr 2021 23:52:10 +0800 Subject: [PATCH] feat: display author from help --- Cargo.toml | 2 +- src/main.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 77cd887..d88e57b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "acme-client" version = "0.1.0" authors = ["Hatter Jiang "] edition = "2018" -description = "Acme auto challenge client" +description = "Acme auto challenge client, acme-client can issue certificates from Let's encrypt" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/main.rs b/src/main.rs index 103925e..8097a83 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,6 +16,7 @@ use async_std::channel::Sender; const NAME: &str = env!("CARGO_PKG_NAME"); const VERSION: &str = env!("CARGO_PKG_VERSION"); +const AUTHORS: &str = env!("CARGO_PKG_AUTHORS"); const DESCRIPTION: &str = env!("CARGO_PKG_DESCRIPTION"); lazy_static! { @@ -36,6 +37,7 @@ async fn main() -> tide::Result<()> { let matches = App::new(NAME) .version(VERSION) .about(DESCRIPTION) + .author(AUTHORS) .arg(Arg::with_name("version").short("V").long("version").help("Print version")) .arg(Arg::with_name("verbose").short("v").long("verbose").help("Verbose")) .arg(Arg::with_name("type").short("t").long("type").default_value("http").takes_value(true).help("Type http or dns"))