my $tmp = $self->testmode;
}
- for my $key ( keys %{ $self->config } ) {
- my $val = $self->config->{$key};
- $self->testmode($val) if $key =~ /^test[_-]?mode$/i;
+ unless ( $self->used_cmd_params->{'testmode'} ) {
+ for my $key ( keys %{ $self->config } ) {
+ my $val = $self->config->{$key};
+ $self->testmode($val) if $key =~ /^test[_-]?mode$/i;
+ }
}
};
$self->debug( "Werte Konfigurationsdinge aus ..." );
for my $key ( keys %{ $self->config } ) {
my $val = $self->config->{$key};
- $self->piddir($val) if $key =~ /^pid[_-]?dir$/i;
- $self->pidfile($val) if $key =~ /^pid[_-]?file$/i;
+ unless ( $self->used_cmd_params->{'piddir'} ) {
+ $self->piddir($val) if $key =~ /^pid[_-]?dir$/i;
+ }
+ unless ( $self->used_cmd_params->{'pidfile'} ) {
+ $self->pidfile($val) if $key =~ /^pid[_-]?file$/i;
+ }
}
}