cli: load authors automatically

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-11-09 17:12:20 +05:30
parent 27e73863ec
commit 74e3037cb9
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -1,7 +1,7 @@
use clap::{crate_version, Clap}; use clap::{crate_authors, crate_version, Clap};
#[derive(Clap)] #[derive(Clap)]
#[clap(version = crate_version!(), author = "Harsh Shandilya <me@msfjarvis.dev>")] #[clap(version = crate_version!(), author = crate_authors!())]
pub(crate) struct Opts { pub(crate) struct Opts {
#[clap(subcommand)] #[clap(subcommand)]
pub(crate) subcommand: SubCommand, pub(crate) subcommand: SubCommand,