This commit is contained in:
MedzikUserBot 2022-02-13 17:32:35 +00:00
parent b7d0baac61
commit 6e0a75787e
2 changed files with 9 additions and 3 deletions

View File

@ -120,6 +120,11 @@ pub struct Cli {
)]
pub enable_time: bool,
#[clap(long = "print-completions", value_name = "shell", arg_enum, display_order = 13)]
#[clap(
long = "print-completions",
value_name = "shell",
arg_enum,
display_order = 13
)]
pub print_completions: Option<Shell>,
}

View File

@ -1,6 +1,6 @@
mod cli;
use clap::{StructOpt, IntoApp};
use clap::{IntoApp, StructOpt};
use clap_complete::generate;
use colored::Colorize;
use discord_rich_presence::{
@ -8,10 +8,11 @@ use discord_rich_presence::{
new_client, DiscordIpc,
};
use std::{
io,
process::exit,
thread::sleep,
time::{Duration, SystemTime, UNIX_EPOCH},
vec, io,
vec,
};
use crate::cli::Cli;