summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW-Mark Kubacki <wmark@hurrikane.de>2010-03-22 16:09:16 +0100
committerW-Mark Kubacki <wmark@hurrikane.de>2010-03-22 16:09:16 +0100
commitba8c8d9afd18435858a25b018f7d41be0ac3420f (patch)
tree6628ac6ca4eca7e533948f636699b79f532d5441
parenta2ef72fe57e96f304dde24d93130ed1bedbf06a7 (diff)
downloadfcgiwrap-ba8c8d9afd18435858a25b018f7d41be0ac3420f.tar.xz
fcgiwrap-ba8c8d9afd18435858a25b018f7d41be0ac3420f.zip
help screen, along with version set to 1.0
-rw-r--r--fcgiwrap.c14
1 files changed, 13 insertions, 1 deletions
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 <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;