diff options
-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; |