diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-08-16 17:34:35 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-08-16 17:34:35 +0200 |
commit | f00f6c53195363dc58dfae27966cc01594ccf16e (patch) | |
tree | 2e2b44bfa881564e3748fe7f7c782e12d7fcb24e /tool/src/sq_cli.rs | |
parent | 739a00bcc10d36d250dd7c28b26be4ce9cd45307 (diff) |
tool: Implement sq verify.
- Fixes #16.
Diffstat (limited to 'tool/src/sq_cli.rs')
-rw-r--r-- | tool/src/sq_cli.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tool/src/sq_cli.rs b/tool/src/sq_cli.rs index 25ac508c..4145d00b 100644 --- a/tool/src/sq_cli.rs +++ b/tool/src/sq_cli.rs @@ -101,6 +101,30 @@ pub fn build() -> App<'static, 'static> { .number_of_values(1) .help("Secret key to sign with, given as a file \ (can be given multiple times)"))) + .subcommand(SubCommand::with_name("verify") + .display_order(26) + .about("Verifies a message") + .arg(Arg::with_name("input").value_name("FILE") + .help("Sets the input file to use")) + .arg(Arg::with_name("output").value_name("FILE") + .long("output") + .short("o") + .help("Sets the output file to use")) +/* Not yet.... + .arg(Arg::with_name("detached") + .long("detached") + .takes_value(true) + .value_name("SIG-FILE") + .help("Verifies a detached signature")) +*/ + .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)"))) .subcommand(SubCommand::with_name("enarmor") .about("Applies ASCII Armor to a file") .arg(Arg::with_name("input").value_name("FILE") |