diff options
author | randomdan <randomdan@localhost> | 2013-12-31 10:49:12 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-12-31 10:49:12 +0000 |
commit | e68ad84667d5aa80745609f1239d1a1eeb050fec (patch) | |
tree | 35ca98e9b141796e511546b113b2ca5d6a416c4b /project2/cgi | |
parent | Add support for writing a pidfile, drop user privs and forking into a daemon (diff) | |
download | project2-e68ad84667d5aa80745609f1239d1a1eeb050fec.tar.bz2 project2-e68ad84667d5aa80745609f1239d1a1eeb050fec.tar.xz project2-e68ad84667d5aa80745609f1239d1a1eeb050fec.zip |
Tidy up the code for adding a help option
Diffstat (limited to 'project2/cgi')
-rw-r--r-- | project2/cgi/testCgi.cpp | 2 |
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 |