diff options
author | W-Mark Kubacki <wmark@hurrikane.de> | 2010-03-22 16:09:16 +0100 |
---|---|---|
committer | W-Mark Kubacki <wmark@hurrikane.de> | 2010-03-22 16:09:16 +0100 |
commit | ba8c8d9afd18435858a25b018f7d41be0ac3420f (patch) | |
tree | 6628ac6ca4eca7e533948f636699b79f532d5441 | |
parent | a2ef72fe57e96f304dde24d93130ed1bedbf06a7 (diff) | |
download | fcgiwrap-ba8c8d9afd18435858a25b018f7d41be0ac3420f.tar.xz fcgiwrap-ba8c8d9afd18435858a25b018f7d41be0ac3420f.zip |
help screen, along with version set to 1.0
-rw-r--r-- | fcgiwrap.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -24,6 +24,7 @@ */ #define NO_FCGI_DEFINES +#define FCGIWRAP_VERSION "1.0" #include <stdarg.h> #include <fcgi_stdio.h> @@ -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 <root@localdomain.pl>.\n" + "fcgiwrap home page: <http://nginx.localdomain.pl/wiki/FcgiWrap>\n", + argv[0] + ); + return 0; case 'c': nchildren = atoi(optarg); break; |