fix dyn mode name
This commit is contained in:
parent
b93d78c9da
commit
1a494124d8
|
@ -66,11 +66,11 @@ sub init {
|
|||
# $options{version} = string version
|
||||
# $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->{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();
|
||||
}
|
||||
if (defined($self->{list_mode})) {
|
||||
|
|
|
@ -66,11 +66,11 @@ sub init {
|
|||
# $options{version} = string version
|
||||
# $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->{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();
|
||||
}
|
||||
if (defined($self->{list_mode})) {
|
||||
|
|
Loading…
Reference in New Issue