diff --git a/src/config.rs b/src/config.rs index 2fdc887..bf67674 100644 --- a/src/config.rs +++ b/src/config.rs @@ -26,6 +26,8 @@ pub struct Config { header_optional: Vec, #[arg(short = 'p', long, default_value_t = NonZeroU64::new(15552000).unwrap())] cryptoperiod: NonZeroU64, + #[arg(short, long, default_value_t = 1728000)] + revocation: u64, #[arg(short = 'x', long, default_value_t = 1296000)] expiration: u64, #[arg(short, long, action = clap::ArgAction::Count)] @@ -73,6 +75,10 @@ impl Config { &self.header_optional } + pub fn revocation(&self) -> u64 { + self.revocation + } + pub fn verbosity(&self) -> log::LevelFilter { crate::logs::log_level(self.verbose) }