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