diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-04-25 18:05:22 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-04-25 18:05:22 +0000 |
| commit | 8167f9cbc23ba04493a4356e597e46424f1756b1 (patch) | |
| tree | 9b3af071848e79e76c2b90367e7c2b1cf301e149 /src/DllPlugInTester/CommandLineParser.cpp | |
| parent | f32756d95c8c4711032c2da415779f5e589017ec (diff) | |
| download | cppunit-8167f9cbc23ba04493a4356e597e46424f1756b1.tar.gz | |
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).
Diffstat (limited to 'src/DllPlugInTester/CommandLineParser.cpp')
| -rw-r--r-- | src/DllPlugInTester/CommandLineParser.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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 { |
