mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
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:
@ -135,7 +135,7 @@ sub xref_by_help {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
my $man = $man->{_path} || 'man';
|
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;
|
++$Errs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -186,7 +186,7 @@ sub xref_by_man {
|
|||||||
# Special case: podman completion is a hidden command
|
# Special case: podman completion is a hidden command
|
||||||
next if $k eq 'completion';
|
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;
|
++$Errs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user