From: Rich Salz Date: Wed, 2 Oct 2019 19:40:42 +0000 (-0400) Subject: Also mention -- flag and ignore if undocumented X-Git-Tag: openssl-3.0.0-alpha1~1204 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=833f7c8c55c3c8a572db2112a5c2eac92c8262b8;p=oweals%2Fopenssl.git Also mention -- flag and ignore if undocumented Reviewed-by: Paul Dale Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/10077) --- diff --git a/apps/list.c b/apps/list.c index d7c46906aa..77fd20e1e1 100644 --- a/apps/list.c +++ b/apps/list.c @@ -337,6 +337,8 @@ static void list_options_for_command(const char *command) continue; BIO_printf(bio_out, "%s %c\n", o->name, o->valtype); } + /* Always output the -- marker since it is sometimes documented. */ + BIO_printf(bio_out, "- -\n"); } static void list_type(FUNC_TYPE ft, int one) diff --git a/util/find-doc-nits b/util/find-doc-nits index c1e33fcfe4..ea5254b729 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -809,6 +809,7 @@ sub checkflags { } if ( scalar @undocced > 0 ) { foreach ( @undocced ) { + next if /-/; # Skip the -- end-of-flags marker err("$doc: undocumented option -$_"); } }