mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Move shard logic check after help flag check
This commit is contained in:
parent
d30d0c01a7
commit
3bfe900bbc
@ -257,16 +257,17 @@ namespace Catch {
|
|||||||
if( m_startupExceptions )
|
if( m_startupExceptions )
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
||||||
if( m_configData.shardIndex >= m_configData.shardCount ) {
|
|
||||||
Catch::cerr() << "The shard count (" << m_configData.shardCount << ") must be greater than the shard index (" << m_configData.shardIndex << ")\n" << std::flush;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_configData.showHelp || m_configData.libIdentify) {
|
if (m_configData.showHelp || m_configData.libIdentify) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( m_configData.shardIndex >= m_configData.shardCount ) {
|
||||||
|
Catch::cerr() << "The shard count (" << m_configData.shardCount
|
||||||
|
<< ") must be greater than the shard index ("
|
||||||
|
<< m_configData.shardIndex << ")\n"
|
||||||
|
<< std::flush;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
CATCH_TRY {
|
CATCH_TRY {
|
||||||
config(); // Force config to be constructed
|
config(); // Force config to be constructed
|
||||||
|
Loading…
Reference in New Issue
Block a user