feat: display author from help
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user