summaryrefslogtreecommitdiffstats
path: root/tool/src/sq_cli.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-08-15 16:29:46 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-08-15 16:34:49 +0200
commit10276b9e442596849fb0e3742408c26f621b9162 (patch)
tree569e442fd54adc15f5743f038fb341ea60f6cefc /tool/src/sq_cli.rs
parent8ad003bf46987a1adee5bbd3c1c8370544be2147 (diff)
tool: Implement sq sign.
- Fixes #17.
Diffstat (limited to 'tool/src/sq_cli.rs')
-rw-r--r--tool/src/sq_cli.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/tool/src/sq_cli.rs b/tool/src/sq_cli.rs
index 53ff53e1..25ac508c 100644
--- a/tool/src/sq_cli.rs
+++ b/tool/src/sq_cli.rs
@@ -77,6 +77,30 @@ pub fn build() -> App<'static, 'static> {
.multiple(true)
.help("Encrypt with a password \
(can be given multiple times)")))
+ .subcommand(SubCommand::with_name("sign")
+ .display_order(25)
+ .about("Signs 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"))
+ .arg(Arg::with_name("binary")
+ .long("binary")
+ .short("B")
+ .help("Emit unencoded OpenPGP data"))
+ .arg(Arg::with_name("detached")
+ .long("detached")
+ .help("Create a detached signature"))
+ .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 sign 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")