diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2022-05-06 21:39:27 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2022-05-13 15:02:01 +0200 |
commit | 222b97d3588fda97e1ff70bf674481f31765d7ef (patch) | |
tree | 70c58a30c1c85bade3d8e47f4d8d6a3a1712f264 | |
parent | 1cfdbd6ae0c1c740ca75490827410ff0fd3c4ff7 (diff) |
sq: Do not try to use non-existent argument.
-rw-r--r-- | sq/src/sq.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sq/src/sq.rs b/sq/src/sq.rs index ceff874c..c3831535 100644 --- a/sq/src/sq.rs +++ b/sq/src/sq.rs @@ -630,8 +630,9 @@ fn main() -> Result<()> { ("autocrypt", Some(m)) => commands::autocrypt::dispatch(config, m)?, ("inspect", Some(m)) => { - let mut output = - config.create_or_stdout_unsafe(m.value_of("output"))?; + // sq inspect does not have --output, but commands::inspect does. + // Work around this mismatch by always creating a stdout output. + let mut output = config.create_or_stdout_unsafe(None)?; commands::inspect(m, policy, &mut output)?; }, |