From 0ef024a492212b6cac30d62485a3b29632af2ee2 Mon Sep 17 00:00:00 2001 From: "Matthias St. Pierre" Date: Wed, 17 May 2023 18:37:40 +0200 Subject: [PATCH] util/find-doc-nits: extend regex to match new OPT_INFORM A Reviewed-by: Dmitry Belyavskiy Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/7320) --- util/find-doc-nits | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/find-doc-nits b/util/find-doc-nits index 526597d9d0..795c59800f 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -1083,7 +1083,7 @@ sub checkflags { err("$cmd does not implement help for -$expect_helpstr") unless m/^\s*"/; $expect_helpstr = ""; } - if (m/\{\s*"([^"]+)"\s*,\s*OPT_[A-Z0-9_]+\s*,\s*('[-\/:<>cEfFlMnNpsuU]'|0)(.*)$/ + if (m/\{\s*"([^"]+)"\s*,\s*OPT_[A-Z0-9_]+\s*,\s*('[-\/:<>cAEfFlMnNpsuU]'|0)(.*)$/ && !($cmd eq "s_client" && $1 eq "wdebug")) { push @cmdopts, $1; $expect_helpstr = $1; @@ -1122,7 +1122,7 @@ sub checkflags { err("$doc: undocumented $cmd option -$_"); } - # See what's in the command not the manpage. + # See what's in the manpage not the command. my @unimpl = sort grep { my $e = $_; !(grep /^\Q$e\E$/, @cmdopts) } keys %docopts; foreach ( @unimpl ) { next if $_ eq "-"; # Skip the -- end-of-flags marker