diff options
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 { |
