Add revocation to the CLI

This commit is contained in:
Rodolphe Bréard 2023-03-26 22:04:15 +02:00
parent eeaca968b4
commit c10ba5a49a

View file

@ -26,6 +26,8 @@ pub struct Config {
header_optional: Vec<String>,
#[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)
}