361 |
|
void usage(char *progname){ |
362 |
|
fprintf(stderr, "Usage: %s [-d delay] [-v] [-h]\n\n", progname); |
363 |
|
fprintf(stderr, " -d Sets the update time in seconds\n"); |
364 |
< |
fprintf(stderr, " -v Prints version number\n"); |
364 |
> |
fprintf(stderr, " -v Prints version number\n"); |
365 |
|
fprintf(stderr, " -h Displays this help information.\n"); |
366 |
|
fprintf(stderr, "\nReport bugs to <%s>.\n", PACKAGE_BUGREPORT); |
367 |
|
exit(1); |
385 |
|
|
386 |
|
int delay=2; |
387 |
|
|
388 |
< |
while ((c = getopt(argc, argv, "d:")) != EOF){ |
388 |
> |
while ((c = getopt(argc, argv, "vhd:")) != EOF){ |
389 |
|
switch (c){ |
390 |
|
case 'd': |
391 |
|
delay = atoi(optarg); |