diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2010-03-22 16:09:16 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2010-03-22 16:09:16 +0100 |
| commit | cb427b4a74e603e9b8bdf010a336d9beb2f2a308 (patch) | |
| tree | 6628ac6ca4eca7e533948f636699b79f532d5441 | |
| parent | feb398c2f0160db4862398a938d78b202400c798 (diff) | |
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; |
