diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-08-15 15:33:40 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-08-15 16:32:05 +0200 |
commit | d73691ea0a5735f010be6d52c635f383d8df65e5 (patch) | |
tree | 5d93850723624280ea92d518db7c2afe1a3ca0fd /tool/src/sq_cli.rs | |
parent | cd1ca0a6b418c12156bd73589a00805f51e80959 (diff) |
tool: Add options to give encryption and decryption keys as files.
Diffstat (limited to 'tool/src/sq_cli.rs')
-rw-r--r-- | tool/src/sq_cli.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tool/src/sq_cli.rs b/tool/src/sq_cli.rs index b9dd138e..f7c78c73 100644 --- a/tool/src/sq_cli.rs +++ b/tool/src/sq_cli.rs @@ -25,6 +25,14 @@ pub fn build() -> App<'static, 'static> { .long("output") .short("o") .help("Sets the output file to use")) + .arg(Arg::with_name("secret-key-file") + .long("secret-key-file") + .multiple(true) + .takes_value(true) + .value_name("TSK-FILE") + .number_of_values(1) + .help("Secret key to decrypt with, given as a file \ + (can be given multiple times)")) .arg(Arg::with_name("dump") .long("dump") .help("Print a packet dump to stderr")) @@ -53,6 +61,14 @@ pub fn build() -> App<'static, 'static> { .number_of_values(1) .help("Recipient to encrypt for \ (can be given multiple times)")) + .arg(Arg::with_name("recipient-key-file") + .long("recipient-key-file") + .multiple(true) + .takes_value(true) + .value_name("TPK-FILE") + .number_of_values(1) + .help("Recipient to encrypt for, given as a file \ + (can be given multiple times)")) .arg(Arg::with_name("symmetric") .long("symmetric") .short("s") |