summaryrefslogtreecommitdiffstats
path: root/sq/src/sq.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sq/src/sq.rs')
-rw-r--r--sq/src/sq.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/sq/src/sq.rs b/sq/src/sq.rs
index e46125d6..e99d2b3e 100644
--- a/sq/src/sq.rs
+++ b/sq/src/sq.rs
@@ -719,7 +719,11 @@ fn main() -> Result<()> {
Some(("keyserver", m)) =>
commands::net::dispatch_keyserver(config, m)?,
- Some(("key", m)) => commands::key::dispatch(config, m)?,
+ Some(("key", m)) => {
+ use clap::FromArgMatches;
+ let command = sq_cli::KeyCommand::from_arg_matches(m)?;
+ commands::key::dispatch(config, command)?
+ },
Some(("revoke", m)) => commands::revoke::dispatch(config, m)?,