summaryrefslogtreecommitdiffstats
path: root/sq
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2022-07-01 12:08:52 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2022-07-05 13:57:05 +0200
commite3f74f518c51fb9d324cf833f4859b9b8cc4df41 (patch)
treec39676073d55ab0d60c86a470dcb190de88d7dc9 /sq
parent377cf1ec2e0916fad8734200502a54e606d2cb00 (diff)
sq: Add output argument to sq wkd get.
- The handling code for sq wkd get expects an "output" argument, but that argument was not defined.
Diffstat (limited to 'sq')
-rw-r--r--sq/src/sq-usage.rs5
-rw-r--r--sq/src/sq_cli.rs7
2 files changed, 10 insertions, 2 deletions
diff --git a/sq/src/sq-usage.rs b/sq/src/sq-usage.rs
index 09b83c1d..36e08175 100644
--- a/sq/src/sq-usage.rs
+++ b/sq/src/sq-usage.rs
@@ -1304,8 +1304,9 @@
//! <ADDRESS> Queries a cert for ADDRESS
//!
//! OPTIONS:
-//! -B, --binary Emits binary data
-//! -h, --help Print help information
+//! -B, --binary Emits binary data
+//! -h, --help Print help information
+//! -o, --output <FILE> Writes to FILE or stdout if omitted
//! ```
//!
//! ### Subcommand wkd url
diff --git a/sq/src/sq_cli.rs b/sq/src/sq_cli.rs
index d336b448..72ed44c1 100644
--- a/sq/src/sq_cli.rs
+++ b/sq/src/sq_cli.rs
@@ -2092,6 +2092,13 @@ pub struct WkdGetCommand {
help = "Emits binary data",
)]
pub binary: bool,
+ #[clap(
+ short,
+ long,
+ value_name = "FILE",
+ help = "Writes to FILE or stdout if omitted"
+ )]
+ pub output: Option<String>,
}
#[derive(Debug, Args)]