summaryrefslogtreecommitdiff
path: root/qpid/cpp/include
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2012-09-20 13:48:40 +0000
committerCharles E. Rolke <chug@apache.org>2012-09-20 13:48:40 +0000
commite20a23b370e64c6f09a57b4ddefd6f650e89ba13 (patch)
tree9a8c05e15b071bc7fd3f78017d76b8ffb4824e32 /qpid/cpp/include
parenta848dc683403f7f2cb26c693b561d3aa70506efb (diff)
downloadqpid-python-e20a23b370e64c6f09a57b4ddefd6f650e89ba13.tar.gz
QPID-3500 C++ qpidd broker --help should work despite parse errors
This patch finds and processes --version before anything else. Then it finds --help before fully parsing command line options. In the event of a parse error, help usage may be shown as requested. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1388032 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
-rw-r--r--qpid/cpp/include/qpid/Options.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/cpp/include/qpid/Options.h b/qpid/cpp/include/qpid/Options.h
index 0bbe7b704f..feef5d8b98 100644
--- a/qpid/cpp/include/qpid/Options.h
+++ b/qpid/cpp/include/qpid/Options.h
@@ -149,6 +149,11 @@ struct Options : public po::options_description {
const std::string& configfile=std::string(),
bool allowUnknown = false);
+ /**
+ * Tests for presence of argc/argv switch
+ */
+ QPID_COMMON_EXTERN bool findArg(int argc, char const* const* argv,
+ const std::string& theArg);
boost::program_options::options_description_easy_init addOptions() {
return add_options();