From 681103a86d09ed69241a2e7e615149e2e1917ad5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 20 Apr 2010 21:16:23 +0100 Subject: [PATCH] allow hostname fqdn as non-option argument --- backends/innduct.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backends/innduct.c b/backends/innduct.c index 89e15b6..27fba90 100644 --- a/backends/innduct.c +++ b/backends/innduct.c @@ -2181,9 +2181,15 @@ int main(int argc, char **argv) { } 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; -- 2.30.2