feat: display author from help
This commit is contained in:
@@ -3,7 +3,7 @@ name = "acme-client"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
||||||
edition = "2018"
|
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
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ use async_std::channel::Sender;
|
|||||||
|
|
||||||
const NAME: &str = env!("CARGO_PKG_NAME");
|
const NAME: &str = env!("CARGO_PKG_NAME");
|
||||||
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
const AUTHORS: &str = env!("CARGO_PKG_AUTHORS");
|
||||||
const DESCRIPTION: &str = env!("CARGO_PKG_DESCRIPTION");
|
const DESCRIPTION: &str = env!("CARGO_PKG_DESCRIPTION");
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
@@ -36,6 +37,7 @@ async fn main() -> tide::Result<()> {
|
|||||||
let matches = App::new(NAME)
|
let matches = App::new(NAME)
|
||||||
.version(VERSION)
|
.version(VERSION)
|
||||||
.about(DESCRIPTION)
|
.about(DESCRIPTION)
|
||||||
|
.author(AUTHORS)
|
||||||
.arg(Arg::with_name("version").short("V").long("version").help("Print version"))
|
.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("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"))
|
.arg(Arg::with_name("type").short("t").long("type").default_value("http").takes_value(true).help("Type http or dns"))
|
||||||
|
|||||||
Reference in New Issue
Block a user