summaryrefslogtreecommitdiff
path: root/project2/cgi
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-12-31 10:49:12 +0000
committerrandomdan <randomdan@localhost>2013-12-31 10:49:12 +0000
commitf35665803d086b08befb04c3d5f9a95986506d54 (patch)
tree35ca98e9b141796e511546b113b2ca5d6a416c4b /project2/cgi
parentAdd support for writing a pidfile, drop user privs and forking into a daemon (diff)
downloadproject2-f35665803d086b08befb04c3d5f9a95986506d54.tar.bz2
project2-f35665803d086b08befb04c3d5f9a95986506d54.tar.xz
project2-f35665803d086b08befb04c3d5f9a95986506d54.zip
Tidy up the code for adding a help option
Diffstat (limited to 'project2/cgi')
-rw-r--r--project2/cgi/testCgi.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/project2/cgi/testCgi.cpp b/project2/cgi/testCgi.cpp
index e842958..58b823f 100644
--- a/project2/cgi/testCgi.cpp
+++ b/project2/cgi/testCgi.cpp
@@ -7,6 +7,7 @@
#include "../cli/claOptions.h"
#include "cgiRequestContext.h"
#include "cgiAppEngine.h"
+#include <options/showHelp.h>
#define TESTOPT(name, def, desc) \
(name, Options::value(optStore().insert(OptStore::value_type(name, StrPtr(new std::string()))).first->second.get(), def), desc)
@@ -120,6 +121,7 @@ TESTOPT("HTTPS", "No", "HTTPS?")
TESTOPT("HTTP_IF_MODIFIED_SINCE", "", "Client cached copy timestamp")
("urlListFile", Options::value(&urlListFile, ""), "Load URL list from this file")
("runCount", Options::value(&runCount, 1), "Repeat run this many times")
+("help", ShowHelpComponent::Option(), "Print usage and exit")("h")
END_OPTIONS(TestInput);
int