diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-05-19 09:38:20 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-05-20 16:24:44 +0200 |
commit | 14d3bb06c9c11b3e13c64611913757c27bc057f2 (patch) | |
tree | a90b789b75f90000167ae9b8858f6478107b5829 /util | |
parent | 359efeac3f9b99c5f734b90db8a4c5bfadb7323a (diff) |
util/find-doc-nits: Improve helpstr pattern matching
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15299)
Diffstat (limited to 'util')
-rwxr-xr-x | util/find-doc-nits | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits index 7d68f70c02..c62307a9ce 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -1069,11 +1069,11 @@ 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)\s*,(.*)$/ - && !($cmd eq "s_client" && $1 eq "wdebug")) { + if (m/\{\s*"([^"]+)"\s*,\s*OPT_[A-Z0-9_]+\s*,\s*('[-\/:<>cEfFlMnNpsuU]'|0)(.*)$/ + && !($cmd eq "s_client" && $1 eq "wdebug")) { push @cmdopts, $1; $expect_helpstr = $1; - $expect_helpstr = "" if $3 =~ m/^\s*"/; + $expect_helpstr = "" if $3 =~ m/^\s*,\s*"/; } elsif (m/[\s,](OPT_[A-Z]+_OPTIONS?)\s*(,|$)/) { push @cmdopts, @{ $genopts{$1} }; } |