diff options
author | Rich Salz <rsalz@akamai.com> | 2019-11-08 06:08:30 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-11-08 06:08:30 +1000 |
commit | 5388f9862d9aaf3c7cf7a70c1e36e7e983c26cfc (patch) | |
tree | bda368ec4d8855ac5d3e2a31648769a5dabfaac9 /apps/provider.c | |
parent | ab14d2af5386897eba8307c9f3220a6d775c0898 (diff) | |
download | openssl-5388f9862d9aaf3c7cf7a70c1e36e7e983c26cfc.tar.gz |
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/provider.c')
-rw-r--r-- | apps/provider.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/provider.c b/apps/provider.c index 325a7424cd..47bc056b63 100644 --- a/apps/provider.c +++ b/apps/provider.c @@ -28,7 +28,11 @@ typedef enum OPTION_choice { const OPTIONS provider_options[] = { {OPT_HELP_STR, 1, '-', "Usage: %s [options] provider...\n"}, {OPT_HELP_STR, 1, '-', " provider... Providers to load\n"}, + + OPT_SECTION("General"), {"help", OPT_HELP, '-', "Display this summary"}, + + OPT_SECTION("Output"), {"v", OPT_V, '-', "List the algorithm names of specified provider"}, {"vv", OPT_VV, '-', "List the algorithm names of specified providers,"}, {OPT_MORE_STR, 0, '-', "categorised by operation type"}, |