diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-09-25 16:30:04 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-09-25 16:44:14 +0200 |
commit | c2a1f81a412ea3b743cbbb4e715d6166f1338e92 (patch) | |
tree | e13478f23acc8fde918f96d4be70816a91216d91 /tool/src/sq_cli.rs | |
parent | d250772aff31f495cbef3f87aa3679d71aad849f (diff) |
tool: Use the new streaming decryptor.
- We now also verify signatures, add the appropriate arguments.
- Fixes #75. The Decryptor returns an error in this case.
Diffstat (limited to 'tool/src/sq_cli.rs')
-rw-r--r-- | tool/src/sq_cli.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tool/src/sq_cli.rs b/tool/src/sq_cli.rs index bba7b448..163e75fe 100644 --- a/tool/src/sq_cli.rs +++ b/tool/src/sq_cli.rs @@ -29,6 +29,20 @@ pub fn build() -> App<'static, 'static> { .long("output") .short("o") .help("Sets the output file to use")) + .arg(Arg::with_name("signatures").value_name("N") + .help("The number of valid signatures required. \ + Default: 1") + .long("signatures") + .short("n") + .takes_value(true)) + .arg(Arg::with_name("public-key-file") + .long("public-key-file") + .multiple(true) + .takes_value(true) + .value_name("TPK-FILE") + .number_of_values(1) + .help("Public key to verify with, given as a file \ + (can be given multiple times)")) .arg(Arg::with_name("secret-key-file") .long("secret-key-file") .multiple(true) |