feat: add --timezone-local CLI option
This commit is contained in:
parent
a5a7be5b4e
commit
4f2bb47ab4
1 changed files with 6 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ struct Cli {
|
|||
#[cfg(feature = "timezone")]
|
||||
#[clap(long, global = true)]
|
||||
timezone: Option<String>,
|
||||
/// Use local timezone
|
||||
#[clap(long, global = true)]
|
||||
timezone_local: bool,
|
||||
/// Use authentication
|
||||
#[clap(long, global = true)]
|
||||
auth: bool,
|
||||
|
|
@ -917,6 +920,9 @@ async fn run() -> anyhow::Result<()> {
|
|||
if let Some(botguard_bin) = cli.botguard_bin {
|
||||
rp = rp.botguard_bin(botguard_bin);
|
||||
}
|
||||
if cli.timezone_local {
|
||||
rp = rp.timezone_local();
|
||||
}
|
||||
|
||||
#[cfg(feature = "timezone")]
|
||||
if let Some(timezone) = cli.timezone {
|
||||
|
|
|
|||
Reference in a new issue