has $verbose :reader = 0;
has $single :reader = 0;
has $one_shot :reader = 0;
+ has $skip_db_update :reader = 0;
has $dump_config :reader = 0;
method verb($message) {
'dump-config!' => \$dump_config,
's|single!' => \$single,
'one-shot!' => \$one_shot,
+ 'skip-db-update!' => \$skip_db_update,
'tql|target-queue-length=n' => \$target_queue_length,
'mpd-host=s' => \$mpd_host,
'mpd-port=s' => \$mpd_port,
);
$self->connect_db;
- $self->update_db;
+ $self->update_db unless $self->opt->skip_db_update;
}
}