fix dyn mode name
This commit is contained in:
parent
b93d78c9da
commit
1a494124d8
|
@ -66,11 +66,11 @@ sub init {
|
||||||
# $options{version} = string version
|
# $options{version} = string version
|
||||||
# $options{help} = string help
|
# $options{help} = string help
|
||||||
|
|
||||||
if (defined($options{help}) && !defined($self->{mode_name})) {
|
if (defined($options{help}) && !defined($self->{mode_name}) && !defined($self->{dynmode_name})) {
|
||||||
$self->{options}->display_help();
|
$self->{options}->display_help();
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
}
|
}
|
||||||
if (defined($options{version}) && !defined($self->{mode_name})) {
|
if (defined($options{version}) && !defined($self->{mode_name}) && !defined($self->{dynmode_name})) {
|
||||||
$self->version();
|
$self->version();
|
||||||
}
|
}
|
||||||
if (defined($self->{list_mode})) {
|
if (defined($self->{list_mode})) {
|
||||||
|
|
|
@ -66,11 +66,11 @@ sub init {
|
||||||
# $options{version} = string version
|
# $options{version} = string version
|
||||||
# $options{help} = string help
|
# $options{help} = string help
|
||||||
|
|
||||||
if (defined($options{help}) && !defined($self->{mode_name})) {
|
if (defined($options{help}) && !defined($self->{mode_name}) && !defined($self->{dynmode_name})) {
|
||||||
$self->{options}->display_help();
|
$self->{options}->display_help();
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
}
|
}
|
||||||
if (defined($options{version}) && !defined($self->{mode_name})) {
|
if (defined($options{version}) && !defined($self->{mode_name}) && !defined($self->{dynmode_name})) {
|
||||||
$self->version();
|
$self->version();
|
||||||
}
|
}
|
||||||
if (defined($self->{list_mode})) {
|
if (defined($self->{list_mode})) {
|
||||||
|
|
Loading…
Reference in New Issue