Error out if --daemon and --retry are both specified

This commit is contained in:
Richard Hansen 2024-05-14 17:59:42 -04:00
parent 2764cd8a10
commit 066b19af8f

View file

@ -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;