mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-03 10:27:57 +00:00
Got parseCommandLine ready to use new Clara (but not doing so yet)
This commit is contained in:
parent
f330fe7ef9
commit
0514fe4f38
4 changed files with 118 additions and 8 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue