feat: display author from help

This commit is contained in:
2021-04-30 23:52:10 +08:00
parent cd3c250365
commit a5f08b0258
2 changed files with 3 additions and 1 deletions

View File

@@ -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"))