From 0f8f3ea733affed01a222db34c3610488610f0a8 Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Fri, 3 Mar 2017 18:15:30 -0500 Subject: [PATCH] Document the --plain option. --- docs.h | 1 + enchive.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs.h b/docs.h index fa91a46..0b2afcc 100644 --- a/docs.h +++ b/docs.h @@ -20,6 +20,7 @@ static const char docs_keygen[] = " Generate a brand new keypair.\n" "\n" " --force, -f overwrite any existing keys (default: no clobber)\n" +" --plain, -u don't encrypt the secret key\n" "\n" "The global --pubkey and --seckey options select the filenames.\n"; diff --git a/enchive.c b/enchive.c index a4106dc..33a5e49 100644 --- a/enchive.c +++ b/enchive.c @@ -573,6 +573,8 @@ command_extract(struct optparse *options) int option; while ((option = optparse_long(options, extract, 0)) != -1) { switch (option) { + default: + fatal("%s", options->errmsg); } }