mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 10:55:39 +02:00
Got parseCommandLine ready to use new Clara (but not doing so yet)
This commit is contained in:
@@ -166,7 +166,7 @@ namespace Catch {
|
||||
showUsage( std::cout );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
inline int Main( int argc, char* const argv[], ConfigData configData = ConfigData() ) {
|
||||
|
||||
try {
|
||||
@@ -181,9 +181,7 @@ namespace Catch {
|
||||
return 0;
|
||||
}
|
||||
|
||||
AllOptions options;
|
||||
|
||||
options.parseIntoConfig( parser, configData );
|
||||
parseCommandLine( argc, argv, configData );
|
||||
}
|
||||
catch( std::exception& ex ) {
|
||||
std::cerr << ex.what() << "\n\nUsage: ...\n\n";
|
||||
|
Reference in New Issue
Block a user