Hide a minor warning behind -v. Fixes #2166

This commit is contained in:
dmiller 2020-10-30 14:07:02 +00:00
parent 9ac591f9db
commit 74296582e2

View file

@ -1121,7 +1121,8 @@ void parse_options(int argc, char **argv) {
Snprintf(buf, 3, "P%c", *optarg);
delayed_options.warn_deprecated(buf, "Pn");
}
error("Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.");
if (o.verbose > 0)
error("Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.");
o.pingtype |= PINGTYPE_NONE;
}
else if (*optarg == 'R') {