Remove redundant args
This commit is contained in:
parent
5a55ced6ff
commit
1b669b8733
|
@ -13,12 +13,7 @@ use clap::SubCommand;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
let matches = app_from_crate!()
|
let app = app_from_crate!()
|
||||||
.args_from_usage(
|
|
||||||
"-c, --config=[FILE] 'Sets custom config file'
|
|
||||||
-v, --verbose 'Prints more details when running'
|
|
||||||
-T, --token=[TOKEN] 'Specifies token for authentication'",
|
|
||||||
)
|
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("login")
|
SubCommand::with_name("login")
|
||||||
.about("authenticates and saves the session details")
|
.about("authenticates and saves the session details")
|
||||||
|
|
Loading…
Reference in New Issue