From 1b3dc899d67519348d12f891c34a08645304bbbb Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Mon, 18 Apr 2022 10:09:38 -0600 Subject: [PATCH] manpage vs --help checker: better error messages Use quotes to indicate the command, and remove some duplication Signed-off-by: Ed Santiago --- hack/xref-helpmsgs-manpages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/xref-helpmsgs-manpages b/hack/xref-helpmsgs-manpages index 1f022531e0..7c07a4f01f 100755 --- a/hack/xref-helpmsgs-manpages +++ b/hack/xref-helpmsgs-manpages @@ -135,7 +135,7 @@ sub xref_by_help { } else { my $man = $man->{_path} || 'man'; - warn "$ME: podman @subcommand --help lists $k, but $k not in $man\n"; + warn "$ME: 'podman @subcommand --help' lists '$k', which is not in $man\n"; ++$Errs; } } @@ -186,7 +186,7 @@ sub xref_by_man { # Special case: podman completion is a hidden command next if $k eq 'completion'; - warn "$ME: podman @subcommand: $k in $man, but not --help\n"; + warn "$ME: 'podman @subcommand': $k in $man, but not --help\n"; ++$Errs; } }