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.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/sq/src/sq.rs b/sq/src/sq.rs
index 09565961..87a476f6 100644
--- a/sq/src/sq.rs
+++ b/sq/src/sq.rs
@@ -641,8 +641,11 @@ fn main() -> Result<()> {
io::copy(&mut filter, &mut output)?;
},
#[cfg(feature = "autocrypt")]
- Some(("autocrypt", m)) => commands::autocrypt::dispatch(config, m)?,
-
+ Some(("autocrypt", m)) => {
+ use clap::FromArgMatches;
+ let command = sq_cli::autocrypt::AutocryptCommand::from_arg_matches(m)?;
+ commands::autocrypt::dispatch(config, &command)?;
+ },
Some(("inspect", m)) => {
// sq inspect does not have --output, but commands::inspect does.
// Work around this mismatch by always creating a stdout output.