Skip to content

Commit

Permalink
manpage vs --help checker: better error messages
Browse files Browse the repository at this point in the history
Use quotes to indicate the command, and remove some duplication

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Apr 18, 2022
1 parent cc4bc25 commit 1b3dc89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/xref-helpmsgs-manpages
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 1b3dc89

Please sign in to comment.