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)
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);