git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3074
d4fa192b-c00b-0410-8231-
f00ffab90ce4
usage(void)
{
- fprintf(stderr, "usage: varnishncsa %s [-aDV] [-n varnish_name] [-P file] [-w file]\n", VSL_ARGS);
+ fprintf(stderr, "usage: varnishncsa %s [-aDV] [-n varnish_name] [-P file] [-w file]\n", VSL_USAGE);
exit(1);
}
printf("# TEST %s completed\n", fn);
}
+/**********************************************************************
+ * Print usage
+ */
+
+static void
+usage(void)
+{
+ fprintf(stderr, "usage: varnishtest [-qv] file ...\n");
+ exit(1);
+}
+
/**********************************************************************
* Main
*/
case 'v':
vtc_verbosity++;
break;
- case '?':
default:
- errx(1, "Usage");
+ usage();
}
}
argc -= optind;
argv += optind;
+
+ if(argc == 0)
+ usage();
+
init_sema();
for (ch = 0; ch < argc; ch++)
exec_file(argv[ch]);