diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-15 13:10:19 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-15 13:10:19 +0100 |
commit | 2f65307468e44d603f82d3dc033c11054dc3a772 (patch) | |
tree | 35e6b2b5d5b3b57966bc663dcedf0de743b007bc /tool | |
parent | 7735b05e8cf82ae943e8b7b0dfed4a26cd6c3db4 (diff) |
tool: Clarify default handling.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/commands/key.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs index 5351c575..6b20d60f 100644 --- a/tool/src/commands/key.rs +++ b/tool/src/commands/key.rs @@ -115,7 +115,7 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { // Cipher Suite match m.value_of("cipher-suite") { - None | Some("rsa3k") => { + Some("rsa3k") => { builder = builder.set_cipher_suite(CipherSuite::RSA3k); } Some("rsa4k") => { @@ -127,6 +127,7 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { Some(ref cs) => { return Err(format_err!("Unknown cipher suite '{}'", cs)); } + None => panic!("argument has a default value"), } // Signing Capability |