diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-04-18 17:18:11 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-04-18 17:18:11 +0000 |
| commit | 2927c18bdb8eb435064e07393495f915e230bfbe (patch) | |
| tree | e65797317647fbad6f02860d62d005bf71644fde /cpp/include | |
| parent | 4a5c3cb9f9f079d4121bddc4f936fb4ee5e81d2a (diff) | |
| download | qpid-python-2927c18bdb8eb435064e07393495f915e230bfbe.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.h | 4 |
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: |
