feat: v1.2.2, optimize codes
This commit is contained in:
@@ -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 ...)
|
||||
|
||||
Reference in New Issue
Block a user