Add revocation to the CLI
This commit is contained in:
parent
eeaca968b4
commit
c10ba5a49a
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue