Commit cd434659 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Make varnishlog complain if regex and tag is passed but no -o

parent 3b23f372
......@@ -303,7 +303,7 @@ static void
usage(void)
{
fprintf(stderr, "usage: varnishlog "
"%s [-aDoV] [-n varnish_name] [-P file] [-w file]\n", VSL_USAGE);
"%s [-aDV] [-o [tag regex]] [-n varnish_name] [-P file] [-w file]\n", VSL_USAGE);
exit(1);
}
......@@ -361,6 +361,9 @@ main(int argc, char * const *argv)
if (o_flag && w_arg != NULL)
usage();
if ((argc - optind) > 0 && !o_flag)
usage();
if (VSL_Open(vd, 1))
exit(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment