From 2f3d7ca0600c8685fceb88b5636250145e019096 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 18 Apr 2013 17:18:11 +0000 Subject: 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 --- qpid/cpp/include/qpid/Options.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qpid/cpp/include') 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: -- cgit v1.2.1