Allow output stream to be specified on the command line
This commit is contained in:
1 parent
925409d7e9
commit
2885339287
10 files changed
+161
-15
No files matched your search
@@ -152,7 +152,10 @@ namespace Catch
|
||||
case modeOutput:
|
||||
if( m_args.size() == 0 )
|
||||
return setErrorMode( m_command + " expected filename" );
|
||||
m_config.setFilename( m_args[0] );
|
||||
if( m_args[0][0] == '%' )
|
||||
m_config.useStream( m_args[0].substr( 1 ) );
|
||||
else
|
||||
m_config.setFilename( m_args[0] );
|
||||
break;
|
||||
case modeSuccess:
|
||||
if( m_args.size() != 0 )
|
||||
|
||||
Reference in new issue
Block a user