From 069e4a26a67d11c1a0c2194f09ead2acad1a75ba Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Thu, 20 Nov 2003 18:32:24 +0100 Subject: [PATCH] Made syndaemon recognize the '?' option, causing the help message to be printed. --- syndaemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syndaemon.c b/syndaemon.c index 2e0d55d..256c7aa 100644 --- a/syndaemon.c +++ b/syndaemon.c @@ -143,7 +143,7 @@ int main(int argc, char *argv[]) int shmid; /* Parse command line parameters */ - while ((c = getopt(argc, argv, "i:")) != EOF) { + while ((c = getopt(argc, argv, "i:?")) != EOF) { switch(c) { case 'i': idle_time = atof(optarg);