Also mention -- flag and ignore if undocumented

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10077)
This commit is contained in:
Rich Salz 2019-10-02 15:40:42 -04:00 committed by Richard Levitte
parent 89e5aaa1d7
commit 833f7c8c55
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -809,6 +809,7 @@ sub checkflags {
}
if ( scalar @undocced > 0 ) {
foreach ( @undocced ) {
next if /-/; # Skip the -- end-of-flags marker
err("$doc: undocumented option -$_");
}
}