diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-05-18 11:23:13 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-05-19 14:13:12 +0200 |
commit | e34307b8ac51a57d300e3a302de410eb6c726b40 (patch) | |
tree | 080911a613ba2bacd81ea4b1b971e15c5a6f31c9 /util | |
parent | 5bac37cb14f1e056891a0339d42b5c6db4344553 (diff) |
find-doc-nits -c: Fix handling in case expected helpstr is not found
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15329)
Diffstat (limited to 'util')
-rwxr-xr-x | util/find-doc-nits | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits index e8439b8626..fd465f6d0b 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -1048,7 +1048,8 @@ sub checkflags { next if m/^\s*#\s*if/; err("$cmd does not implement help for -$expect_helpstr") unless m/^\s*"/; $expect_helpstr = ""; - } elsif (m/\{\s*"([^"]+)"\s*,\s*OPT_[A-Z0-9_]+\s*,\s*('[-\/:<>cEfFlMnNpsuU]'|0)\s*,(.*)$/ + } + if (m/\{\s*"([^"]+)"\s*,\s*OPT_[A-Z0-9_]+\s*,\s*('[-\/:<>cEfFlMnNpsuU]'|0)\s*,(.*)$/ && !($cmd eq "s_client" && $1 eq "wdebug")) { push @cmdopts, $1; $expect_helpstr = $1; |