MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / applyCommandLine

Method applyCommandLine

Source/ThirdParty/catch2/catch.hpp:13450–13473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13448 }
13449
13450 int Session::applyCommandLine( int argc, char const * const * argv ) {
13451 if( m_startupExceptions )
13452 return 1;
13453
13454 auto result = m_cli.parse( clara::Args( argc, argv ) );
13455 if( !result ) {
13456 config();
13457 getCurrentMutableContext().setConfig(m_config);
13458 Catch::cerr()
13459 << Colour( Colour::Red )
13460 << "\nError(s) in input:\n"
13461 << Column( result.errorMessage() ).indent( 2 )
13462 << "\n\n";
13463 Catch::cerr() << "Run with -? for usage\n" << std::endl;
13464 return MaxExitCode;
13465 }
13466
13467 if( m_configData.showHelp )
13468 showHelp();
13469 if( m_configData.libIdentify )
13470 libIdentify();
13471 m_config.reset();
13472 return 0;
13473 }
13474
13475#if defined(CATCH_CONFIG_WCHAR) && defined(_WIN32) && defined(UNICODE)
13476 int Session::applyCommandLine( int argc, wchar_t const * const * argv ) {

Callers

nothing calls this directly

Calls 8

ColourClass · 0.85
ColumnClass · 0.85
setConfigMethod · 0.80
errorMessageMethod · 0.80
ArgsClass · 0.70
parseMethod · 0.45
indentMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected