summaryrefslogtreecommitdiff
path: root/cpp/include
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-04-18 17:18:11 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-04-18 17:18:11 +0000
commitbbec2daa7ecd17f00cc859bcf0d10b2bf2197225 (patch)
treee65797317647fbad6f02860d62d005bf71644fde /cpp/include
parent9cc8705bd3f4a222dd4209b768157ea00527c14f (diff)
downloadqpid-python-bbec2daa7ecd17f00cc859bcf0d10b2bf2197225.tar.gz
QPID-3689: Fix previous change of command line option handling
Now introduced new command line option type that is a pure command line switch which can take no boolean argument. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1469466 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include')
-rw-r--r--cpp/include/qpid/Options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/include/qpid/Options.h b/cpp/include/qpid/Options.h
index 993e024f3d..6c908518b8 100644
--- a/cpp/include/qpid/Options.h
+++ b/cpp/include/qpid/Options.h
@@ -98,6 +98,10 @@ inline po::value_semantic* optValue(bool& value) {
#endif
}
+inline po::value_semantic* pure_switch(bool& value) {
+ return po::bool_switch(&value);
+}
+
/**
* Base class for options.
* Example of use: