opgpcard: Remove negative logic
This commit is contained in:
parent
e81ebd21a0
commit
1834762879
2 changed files with 8 additions and 8 deletions
|
@ -188,11 +188,11 @@ pub enum AdminCommand {
|
|||
#[clap(name = "output", long = "output", short = 'o')]
|
||||
output: Option<PathBuf>,
|
||||
|
||||
#[clap(long = "no-decrypt")]
|
||||
no_decrypt: bool,
|
||||
#[clap(long = "no-decrypt", action = clap::ArgAction::SetFalse)]
|
||||
decrypt: bool,
|
||||
|
||||
#[clap(long = "no-auth")]
|
||||
no_auth: bool,
|
||||
#[clap(long = "no-auth", action = clap::ArgAction::SetFalse)]
|
||||
auth: bool,
|
||||
|
||||
/// Algorithm (rsa2048|rsa3072|rsa4096|nistp256|nistp384|nistp521|25519)
|
||||
#[clap()]
|
||||
|
|
|
@ -313,8 +313,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
cli::AdminCommand::Generate {
|
||||
user_pin,
|
||||
output,
|
||||
no_decrypt,
|
||||
no_auth,
|
||||
decrypt,
|
||||
auth,
|
||||
algo,
|
||||
user_id,
|
||||
} => {
|
||||
|
@ -327,8 +327,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
admin_pin.as_deref(),
|
||||
user_pin.as_deref(),
|
||||
output,
|
||||
!no_decrypt,
|
||||
!no_auth,
|
||||
decrypt,
|
||||
auth,
|
||||
algo,
|
||||
user_id,
|
||||
)?;
|
||||
|
|
Loading…
Reference in a new issue