Error out if --daemon
and --retry
are both specified
This commit is contained in:
parent
2764cd8a10
commit
066b19af8f
1 changed files with 1 additions and 0 deletions
|
@ -1903,6 +1903,7 @@ sub init_config {
|
||||||
if (defined $opt{'host'} && defined $opt{'retry'}) {
|
if (defined $opt{'host'} && defined $opt{'retry'}) {
|
||||||
fatal("options --retry and --host (or --option host=..) are mutually exclusive");
|
fatal("options --retry and --host (or --option host=..) are mutually exclusive");
|
||||||
}
|
}
|
||||||
|
fatal("options --retry and --daemon cannot be used together") if (opt('retry') && opt('daemon'));
|
||||||
|
|
||||||
## determine hosts to update (those on the cmd-line, config-file, or failed cached)
|
## determine hosts to update (those on the cmd-line, config-file, or failed cached)
|
||||||
my @hosts = keys %config;
|
my @hosts = keys %config;
|
||||||
|
|
Loading…
Reference in a new issue