Fix #5974
This commit is contained in:
parent
76835582b6
commit
acaa8348bf
|
@ -128,7 +128,11 @@ sub init {
|
|||
}
|
||||
|
||||
if (defined($options{help})) {
|
||||
$self->{options}->add_help(package => $self->{modes}{$self->{mode_name}}, sections => 'MODE');
|
||||
if (defined($self->{mode_name}) && $self->{mode_name} ne '') {
|
||||
$self->{options}->add_help(package => $self->{modes}{$self->{mode_name}}, sections => 'MODE');
|
||||
} else {
|
||||
$self->{options}->add_help(package => $self->{dynmode_name}, sections => 'MODE');
|
||||
}
|
||||
$self->{options}->display_help();
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
|
|
@ -107,7 +107,11 @@ sub init {
|
|||
}
|
||||
|
||||
if (defined($options{help})) {
|
||||
$self->{options}->add_help(package => $self->{modes}{$self->{mode_name}}, sections => 'MODE');
|
||||
if (defined($self->{mode_name}) && $self->{mode_name} ne '') {
|
||||
$self->{options}->add_help(package => $self->{modes}{$self->{mode_name}}, sections => 'MODE');
|
||||
} else {
|
||||
$self->{options}->add_help(package => $self->{dynmode_name}, sections => 'MODE');
|
||||
}
|
||||
$self->{options}->display_help();
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
|
|
@ -112,7 +112,11 @@ sub init {
|
|||
}
|
||||
|
||||
if (defined($options{help})) {
|
||||
$self->{options}->add_help(package => $self->{modes}{$self->{mode_name}}, sections => 'MODE');
|
||||
if (defined($self->{mode_name}) && $self->{mode_name} ne '') {
|
||||
$self->{options}->add_help(package => $self->{modes}{$self->{mode_name}}, sections => 'MODE');
|
||||
} else {
|
||||
$self->{options}->add_help(package => $self->{dynmode_name}, sections => 'MODE');
|
||||
}
|
||||
$self->{options}->display_help();
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
|
|
@ -129,7 +129,11 @@ sub init {
|
|||
}
|
||||
|
||||
if (defined($options{help})) {
|
||||
$self->{options}->add_help(package => $self->{modes}{$self->{mode_name}}, sections => 'MODE');
|
||||
if (defined($self->{mode_name}) && $self->{mode_name} ne '') {
|
||||
$self->{options}->add_help(package => $self->{modes}{$self->{mode_name}}, sections => 'MODE');
|
||||
} else {
|
||||
$self->{options}->add_help(package => $self->{dynmode_name}, sections => 'MODE');
|
||||
}
|
||||
$self->{options}->display_help();
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue