summaryrefslogtreecommitdiffstats
path: root/apps/pkeyparam.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2019-11-07 21:08:30 +0100
committerPauli <paul.dale@oracle.com>2019-11-07 21:08:30 +0100
commit5388f9862d9aaf3c7cf7a70c1e36e7e983c26cfc (patch)
treebda368ec4d8855ac5d3e2a31648769a5dabfaac9 /apps/pkeyparam.c
parentAdd a test for EVP_PKEY_keymake() and EVP_PKEY_make() (diff)
downloadopenssl-5388f9862d9aaf3c7cf7a70c1e36e7e983c26cfc.tar.xz
openssl-5388f9862d9aaf3c7cf7a70c1e36e7e983c26cfc.zip
Add "sections" to -help output
Remove "Valid options" label, since all commands have sections (and [almost] always the first one is "General options"). Have "list --options" ignore section headers Reformat ts's additional help Add output section Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9953)
Diffstat (limited to 'apps/pkeyparam.c')
-rw-r--r--apps/pkeyparam.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/pkeyparam.c b/apps/pkeyparam.c
index 1b037aea8b..552ba56d99 100644
--- a/apps/pkeyparam.c
+++ b/apps/pkeyparam.c
@@ -22,15 +22,20 @@ typedef enum OPTION_choice {
} OPTION_CHOICE;
const OPTIONS pkeyparam_options[] = {
+ OPT_SECTION("General"),
{"help", OPT_HELP, '-', "Display this summary"},
- {"in", OPT_IN, '<', "Input file"},
- {"out", OPT_OUT, '>', "Output file"},
- {"text", OPT_TEXT, '-', "Print parameters as text"},
- {"noout", OPT_NOOUT, '-', "Don't output encoded parameters"},
#ifndef OPENSSL_NO_ENGINE
{"engine", OPT_ENGINE, 's', "Use engine, possibly a hardware device"},
#endif
{"check", OPT_CHECK, '-', "Check key param consistency"},
+
+ OPT_SECTION("Input"),
+ {"in", OPT_IN, '<', "Input file"},
+
+ OPT_SECTION("Output"),
+ {"out", OPT_OUT, '>', "Output file"},
+ {"text", OPT_TEXT, '-', "Print parameters as text"},
+ {"noout", OPT_NOOUT, '-', "Don't output encoded parameters"},
{NULL}
};