Got parseCommandLine ready to use new Clara (but not doing so yet)

This commit is contained in:
Phil Nash 2013-05-31 18:48:31 +01:00
parent f330fe7ef9
commit 0514fe4f38
4 changed files with 118 additions and 8 deletions

View file

@ -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";