which has the opposite meaning (IMHO, the continuous display is the most
useful)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1018
d4fa192b-c00b-0410-8231-
f00ffab90ce4
static void
usage(void)
{
- fprintf(stderr, "usage: varnishstat [-cV]\n");
+ fprintf(stderr, "usage: varnishstat [-1V]\n");
exit(1);
}
{
int c;
struct varnish_stats *VSL_stats;
- int c_flag = 0;
+ int once = 0;
VSL_stats = VSL_OpenStats();
- while ((c = getopt(argc, argv, "cV")) != -1) {
+ while ((c = getopt(argc, argv, "1V")) != -1) {
switch (c) {
- case 'c':
- c_flag = 1;
+ case '1':
+ once = 1;
break;
case 'V':
varnish_version("varnishstat");
}
}
- if (c_flag) {
+ if (!once) {
do_curses(VSL_stats);
} else {