From 8167f9cbc23ba04493a4356e597e46424f1756b1 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Thu, 25 Apr 2002 18:05:22 +0000 Subject: Src/cppunit/XmlOutputter. src/cppunit/XmlOutputter.cpp: bugfix, use ISO-8859-1 encoding if an empty string is given. * src/DllPlugInTester/CommandLineParser.h: * src/DllPlugInTester/CommandLineParser.cpp: * src/DllPlugInTester/DllPlugInTester.cpp: added option -w to wait for the user to press a key before exiting (Philippe Lavoie patch, with change). --- src/DllPlugInTester/CommandLineParser.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/DllPlugInTester/CommandLineParser.cpp') diff --git a/src/DllPlugInTester/CommandLineParser.cpp b/src/DllPlugInTester/CommandLineParser.cpp index 1187266..d9c167d 100644 --- a/src/DllPlugInTester/CommandLineParser.cpp +++ b/src/DllPlugInTester/CommandLineParser.cpp @@ -10,6 +10,7 @@ CommandLineParser::CommandLineParser( int argc, , m_noProgress( false ) , m_useText( false ) , m_useCout( false ) + , m_waitBeforeExit( false ) { for ( int index =1; index < argc; ++index ) { @@ -49,6 +50,8 @@ CommandLineParser::parse() m_useText = true; else if ( isOption( "o", "cout" ) ) m_useCout = true; + else if ( isOption( "w", "wait" ) ) + m_waitBeforeExit = true; else if ( !m_option.empty() ) fail( "Unknown option" ); else if ( hasNextArgument() ) @@ -222,6 +225,13 @@ CommandLineParser::useCoutStream() const } +bool +CommandLineParser::waitBeforeExit() const +{ + return m_waitBeforeExit; +} + + int CommandLineParser::getPlugInCount() const { -- cgit v1.2.1