}
if (!arg) badusage("need site name argument");
- if (*++argv) badusage("too many non-option arguments");
sitename= arg;
+ if ((arg= *++argv)) {
+ if (remote_host) badusage("must not specify -h and also host as argument");
+ remote_host= arg;
+ }
+
+ if (*++argv) badusage("too many non-option arguments");
+
if (nocheck_thresh_pct < 0 || nocheck_thresh_pct > 100)
badusage("nocheck threshold percentage must be between 0..100");
nocheck_thresh= nocheck_thresh_pct * 0.01;