summaryrefslogtreecommitdiff
path: root/src/DllPlugInTester/DllPlugInTester.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-04-25 18:05:22 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-04-25 18:05:22 +0000
commit8167f9cbc23ba04493a4356e597e46424f1756b1 (patch)
tree9b3af071848e79e76c2b90367e7c2b1cf301e149 /src/DllPlugInTester/DllPlugInTester.cpp
parentf32756d95c8c4711032c2da415779f5e589017ec (diff)
downloadcppunit-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/DllPlugInTester.cpp')
-rw-r--r--src/DllPlugInTester/DllPlugInTester.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/DllPlugInTester/DllPlugInTester.cpp b/src/DllPlugInTester/DllPlugInTester.cpp
index d7cf099..26566c5 100644
--- a/src/DllPlugInTester/DllPlugInTester.cpp
+++ b/src/DllPlugInTester/DllPlugInTester.cpp
@@ -103,7 +103,7 @@ void
printShortUsage( const std::string &applicationName )
{
std::cout << "Usage:" << std::endl
- << applicationName << " [-c -b -n -t -o] [-x xml-filename]"
+ << applicationName << " [-c -b -n -t -o -w] [-x xml-filename]"
"[-s stylesheet] [-e encoding] plug-in[=parameters] [plug-in...] [:testPath]"
<< std::endl << std::endl;
}
@@ -131,6 +131,8 @@ printUsage( const std::string &applicationName )
" Use TextOutputter\n"
"-o --cout\n"
" Ouputters output to cout instead of the default cerr.\n"
+"-w --wait\n"
+" Wait for the user to press a return before exit.\n"
"filename[=\"options\"]\n"
" Many filenames can be specified. They are the name of the \n"
" test plug-ins to load. Optional plug-ins parameters can be \n"
@@ -227,6 +229,12 @@ main( int argc,
<< e.what() << std::endl;
}
+ if ( parser.askBeforeExit() )
+ {
+ std::cout << "Please press <RETURN> to exit" << std::endl;
+ std::cin.get();
+ }
+
return wasSuccessful ? successReturnCode : failureReturnCode;
}