mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 10:01:38 +00:00
print_simple_pod_manpage: fix test for "not initialized"
This commit is contained in:
parent
9fa98bfa20
commit
2fff84d929
@ -113,7 +113,8 @@ __PACKAGE__->register_method ({
|
|||||||
sub print_simple_pod_manpage {
|
sub print_simple_pod_manpage {
|
||||||
my ($podfn, $class, $name, $arg_param, $uri_param) = @_;
|
my ($podfn, $class, $name, $arg_param, $uri_param) = @_;
|
||||||
|
|
||||||
die "not initialized" if !($cmddef && $exename && $cli_handler_class);
|
die "not initialized" if !$cli_handler_class;
|
||||||
|
|
||||||
my $pwcallback = $cli_handler_class->can('read_password');
|
my $pwcallback = $cli_handler_class->can('read_password');
|
||||||
|
|
||||||
my $synopsis = " $name help\n\n";
|
my $synopsis = " $name help\n\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user