From ba8c8d9afd18435858a25b018f7d41be0ac3420f Mon Sep 17 00:00:00 2001 From: W-Mark Kubacki Date: Mon, 22 Mar 2010 16:09:16 +0100 Subject: help screen, along with version set to 1.0 --- fcgiwrap.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'fcgiwrap.c') diff --git a/fcgiwrap.c b/fcgiwrap.c index 16bccda..448475d 100644 --- a/fcgiwrap.c +++ b/fcgiwrap.c @@ -24,6 +24,7 @@ */ #define NO_FCGI_DEFINES +#define FCGIWRAP_VERSION "1.0" #include #include @@ -623,8 +624,19 @@ int main(int argc, char **argv) int nchildren = 1; int c; - while ((c = getopt(argc, argv, "c:")) != -1) { + while ((c = getopt(argc, argv, "c:h")) != -1) { switch (c) { + case 'h': + printf("Usage: %s [OPTION]\nInvokes CGI scripts as FCGI.\n\n" + "fcgiwrap version "FCGIWRAP_VERSION"\n\n" + "options are:\n" + " -c 1..x\t\tnumber of processes to prefork\n" + " -h\t\t\tgive this help\n" + "\nReport bugs to Grzegorz Nosek .\n" + "fcgiwrap home page: \n", + argv[0] + ); + return 0; case 'c': nchildren = atoi(optarg); break; -- cgit v1.2.3