X-Git-Url: http://dolda2000.com/gitweb/?p=statserve.git;a=blobdiff_plain;f=statserve.c;fp=statserve.c;h=ab3b3467bc0db6aba64b4207a20a4b116c0633e2;hp=ed4938822e93c60d9acfe95f82ae5cc839e22055;hb=ea4e0b7174a8372eaa3b9519e7ca98e6ba78c6d7;hpb=34d725a595138f81ba84d67d7b84766c3a270d9f diff --git a/statserve.c b/statserve.c index ed49388..ab3b346 100644 --- a/statserve.c +++ b/statserve.c @@ -59,7 +59,7 @@ out: static void usage(FILE *out) { - fprintf(out, "usage: statserve [-h] SOURCE...\n"); + fprintf(out, "usage: statserve [-h] [-P PAGESIZE] SOURCE...\n"); } static void listenloop(struct muth *muth, va_list args) @@ -89,8 +89,11 @@ int main(int argc, char **argv) int c; struct source *last, *src; - while((c = getopt(argc, argv, "+h")) >= 0) { + while((c = getopt(argc, argv, "+hP:")) >= 0) { switch(c) { + case 'P': + dbpagesize = atoi(optarg); + break; case 'h': usage(stdout); return(0);