feat: v1.2.2, optimize codes

This commit is contained in:
2023-12-09 20:33:18 +08:00
parent 9b735f8e48
commit af7bf60869
9 changed files with 41 additions and 58 deletions

View File

@@ -41,13 +41,13 @@ use crate::wrap_key::WrapKey;
pub struct CmdDecrypt {
/// Files need to be decrypted
pub paths: Vec<PathBuf>,
/// PIN
/// PGP or PIV PIN
#[arg(long, short = 'p')]
pub pin: Option<String>,
/// KeyID
#[arg(long, short = 'k')]
pub key_id: Option<String>,
/// Slot
/// PIV slot
#[arg(long, short = 's')]
pub slot: Option<String>,
/// Remove source file
@@ -68,7 +68,7 @@ pub struct CmdDecrypt {
/// Edit file
#[arg(long, short = 'E')]
pub edit_file: bool,
// Readonly
/// Readonly mode
#[arg(long)]
pub readonly: bool,
/// Digest algorithm (sha1, sha256[default], sha384, sha512 ...)