From 09282bcf88d3331b9de890283bb383bf36da498e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 30 Jun 2021 20:55:15 +0200 Subject: [PATCH] Fix some comments in man-page-checker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- hack/man-page-checker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/man-page-checker b/hack/man-page-checker index dceb1b77..a340c929 100755 --- a/hack/man-page-checker +++ b/hack/man-page-checker @@ -81,7 +81,7 @@ function compare_usage() { from_man=$(sed -E -e "s/\*\*$cmd\*\*[[:space:]]*//" <<<"$from_man") from_help=$(sed -E -e "s/^[[:space:]]*$cmd[[:space:]]*//" <<<"$from_help") - # man page lists 'foo [*options*]', help msg shows 'foo [flags]'. + # man page lists 'foo [*options*]', help msg shows 'foo [command options]'. # Make sure if one has it, the other does too. if expr "$from_man" : "\[\*options\*\]" >/dev/null; then if expr "$from_help" : "\[command options\]" >/dev/null; then @@ -102,7 +102,7 @@ function compare_usage() { # Constant strings in man page are '**foo**', in --help are 'foo'. from_man=$(sed -E -e 's/\*\*([^*]+)\*\*/\1/g' <<<"$from_man") - # Args in man page are '*foo*', in --help are 'FOO'. Convert all to + # Args in man page are '_foo_', in --help are 'FOO'. Convert all to # UPCASE simply because it stands out better to the eye. from_man=$(sed -E -e 's/_([a-z-]+)_/\U\1/g' <<<"$from_man")