summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjuga <juga@sequoia-pgp.org>2019-06-02 18:33:20 +0000
committerjuga <juga@sequoia-pgp.org>2019-06-02 18:46:24 +0000
commit73ba0507009778f7ba5d34398adbd2215304273e (patch)
tree2eabd4f8ca80e9d14248d897d7166d9b3051dc3b
parent5c109747e5d279cb3629503a4a18f6666c4daf29 (diff)
tool: stop panicking when wkd get without arguments
and the same with wkd url. Closes #285.
-rw-r--r--tool/src/sq_cli.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/src/sq_cli.rs b/tool/src/sq_cli.rs
index b71a5be3..6f5e0285 100644
--- a/tool/src/sq_cli.rs
+++ b/tool/src/sq_cli.rs
@@ -438,6 +438,7 @@ pub fn build() -> App<'static, 'static> {
.about("Interacts with Web Key Directories")
.setting(AppSettings::ArgRequiredElseHelp)
.subcommand(SubCommand::with_name("url")
+ .setting(AppSettings::SubcommandRequiredElseHelp)
.about("Prints the Web Key Directory URl of \
an email address.")
.arg(Arg::with_name("input")
@@ -445,6 +446,7 @@ pub fn build() -> App<'static, 'static> {
.help("The email address from which to \
obtain the WKD URI.")))
.subcommand(SubCommand::with_name("get")
+ .setting(AppSettings::SubcommandRequiredElseHelp)
.about("Writes to the standard output the \
Transferable Public Key retrieved \
from a Web Key Directory, given an \