summaryrefslogtreecommitdiffstats
path: root/tool/src/sq-usage.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-01-15 14:51:17 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-01-15 14:58:13 +0100
commitd6818ddd1031d98d3762a20db8303f3d6eb5d5b7 (patch)
tree45d5bf46713d9e052341c1cd1b2a3e82a029822b /tool/src/sq-usage.rs
parentf018afccac5cb21be7d11a9b7072a4e13810e56c (diff)
tool: Introduce key manipulation subcommand.
- And move the key generation subcommand there, calling it `generate`. - Fixes #163.
Diffstat (limited to 'tool/src/sq-usage.rs')
-rw-r--r--tool/src/sq-usage.rs29
1 files changed, 23 insertions, 6 deletions
diff --git a/tool/src/sq-usage.rs b/tool/src/sq-usage.rs
index e6f261d0..7c06615b 100644
--- a/tool/src/sq-usage.rs
+++ b/tool/src/sq-usage.rs
@@ -31,7 +31,7 @@
//! dump Lists OpenPGP packets
//! enarmor Applies ASCII Armor to a file
//! help Prints this message or the help of the given subcommand(s)
-//! keygen Generate a new key
+//! key Manipulates keys
//! list Lists key stores and known keys
//! split Splits a message into OpenPGP packets
//! ```
@@ -421,16 +421,33 @@
//! <FILE> Sets the input file to use
//! ```
//!
-//! ## Subcommand keygen
+//! ## Subcommand key
//!
//! ```text
-//! Generate a new key
+//! Manipulates keys
//!
//! USAGE:
-//! sq keygen [FLAGS] [OPTIONS] --export <OUTFILE>
+//! sq key [SUBCOMMAND]
//!
//! FLAGS:
-//! --can-sign The key has a signing-capable subkey (Default)
+//! -h, --help Prints help information
+//! -V, --version Prints version information
+//!
+//! SUBCOMMANDS:
+//! generate Generates a new key
+//! help Prints this message or the help of the given subcommand(s)
+//! ```
+//!
+//! ### Subcommand key generate
+//!
+//! ```text
+//! Generates a new key
+//!
+//! USAGE:
+//! sq key generate [FLAGS] [OPTIONS] --export <OUTFILE>
+//!
+//! FLAGS:
+//! --can-sign The key has a signing-capable subkey (default)
//! --cannot-encrypt The key will not be able to encrypt data
//! --cannot-sign The key will not be able to sign data
//! -h, --help Prints help information
@@ -438,7 +455,7 @@
//! --with-password Prompt for a password to protect the generated key with.
//!
//! OPTIONS:
-//! --can-encrypt <PURPOSE> The key has an encryption-capable subkey (Default) [default: all] [possible
+//! --can-encrypt <PURPOSE> The key has an encryption-capable subkey (default) [default: all] [possible
//! values: transport, rest, all]
//! -c, --cipher-suite <CIPHER-SUITE> Cryptographic algorithms used for the key. [default: rsa3k] [possible values:
//! rsa3k, cv25519]