summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2022-06-09 00:04:56 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2022-06-10 11:00:02 +0200
commit68d546f9f2656595ca5fef3ba405a13155d87642 (patch)
tree5959c207937e67a36627b319ca06b547f9c418f8
parentb3ce39145783c8bcfcd27aa4a26f1cfd45bbd661 (diff)
sq: Improve --prefix help.
-rw-r--r--sq/src/sq-usage.rs10
-rw-r--r--sq/src/sq_cli.rs10
2 files changed, 9 insertions, 11 deletions
diff --git a/sq/src/sq-usage.rs b/sq/src/sq-usage.rs
index 3442bd0c..2c4ac28f 100644
--- a/sq/src/sq-usage.rs
+++ b/sq/src/sq-usage.rs
@@ -749,9 +749,9 @@
//! -h, --help
//! Print help information
//!
-//! -p, --prefix <FILE>
-//! Writes to files with prefix FILE [defaults to the input filename
-//! with a dash, or "output" if keyring is read from stdin]
+//! -p, --prefix <PREFIX>
+//! Writes to files with PREFIX [defaults: "FILE-" if FILE is set, or
+//! "output-" if read from stdin]
//!
//! EXAMPLES:
//!
@@ -1536,8 +1536,8 @@
//! Print help information
//!
//! -p, --prefix <PREFIX>
-//! Writes to files with PREFIX [defaults: FILE a dash, or "output" if
-//! read from stdin)
+//! Writes to files with PREFIX [defaults: "FILE-" if FILE is set, or
+//! "output-" if read from stdin]
//!
//! EXAMPLES:
//!
diff --git a/sq/src/sq_cli.rs b/sq/src/sq_cli.rs
index 02400928..269b0c38 100644
--- a/sq/src/sq_cli.rs
+++ b/sq/src/sq_cli.rs
@@ -547,7 +547,7 @@ pub struct PacketSplitCommand {
long = "prefix",
value_name = "PREFIX",
help = "Writes to files with PREFIX \
- [defaults: FILE a dash, or \"output\" if read from stdin)",
+ [defaults: \"FILE-\" if FILE is set, or \"output-\" if read from stdin]",
)]
pub prefix: Option<String>,
}
@@ -1552,11 +1552,9 @@ pub struct KeyringSplitCommand {
#[clap(
short = 'p',
long = "prefix",
- value_name = "FILE",
- help = "Writes to files with prefix FILE \
- [defaults to the input filename with a \
- dash, or \"output\" if keyring is read \
- from stdin]",
+ value_name = "PREFIX",
+ help = "Writes to files with PREFIX \
+ [defaults: \"FILE-\" if FILE is set, or \"output-\" if read from stdin]",
)]
pub prefix: Option<String>,
#[clap(