Fixed --help options no working with --dyn-mode

This commit is contained in:
Orabig 2017-08-02 15:06:43 +02:00
parent 13f975644e
commit d5495a5eb8
1 changed files with 2 additions and 2 deletions

View File

@ -64,11 +64,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})) {