summaryrefslogtreecommitdiff
path: root/qpid/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
commit2f3d7ca0600c8685fceb88b5636250145e019096 (patch)
treeb66f30ff3123e7b73ff3033724b39e939e2d761d /qpid/cpp/include
parent060f9b4d47da0c5f60dffdc8532332ff92f96bb5 (diff)
downloadqpid-python-2f3d7ca0600c8685fceb88b5636250145e019096.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@1469466 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
-rw-r--r--qpid/cpp/include/qpid/Options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/include/qpid/Options.h b/qpid/cpp/include/qpid/Options.h
index 993e024f3d..6c908518b8 100644
--- a/qpid/cpp/include/qpid/Options.h
+++ b/qpid/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: