manpage vs --help checker: better error messages

Use quotes to indicate the command, and remove some duplication

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago 2022-04-18 10:09:38 -06:00
parent cc4bc25bd0
commit 1b3dc899d6

View file

@ -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;
}
}