| 4699 | } |
| 4700 | |
| 4701 | inline Clara::CommandLine<ConfigData> makeCommandLineParser() { |
| 4702 | |
| 4703 | using namespace Clara; |
| 4704 | CommandLine<ConfigData> cli; |
| 4705 | |
| 4706 | cli.bindProcessName( &ConfigData::processName ); |
| 4707 | |
| 4708 | cli["-?"]["-h"]["--help"] |
| 4709 | .describe( "display usage information" ) |
| 4710 | .bind( &ConfigData::showHelp ); |
| 4711 | |
| 4712 | cli["-l"]["--list-tests"] |
| 4713 | .describe( "list all/matching test cases" ) |
| 4714 | .bind( &ConfigData::listTests ); |
| 4715 | |
| 4716 | cli["-t"]["--list-tags"] |
| 4717 | .describe( "list all/matching tags" ) |
| 4718 | .bind( &ConfigData::listTags ); |
| 4719 | |
| 4720 | cli["-s"]["--success"] |
| 4721 | .describe( "include successful tests in output" ) |
| 4722 | .bind( &ConfigData::showSuccessfulTests ); |
| 4723 | |
| 4724 | cli["-b"]["--break"] |
| 4725 | .describe( "break into debugger on failure" ) |
| 4726 | .bind( &ConfigData::shouldDebugBreak ); |
| 4727 | |
| 4728 | cli["-e"]["--nothrow"] |
| 4729 | .describe( "skip exception tests" ) |
| 4730 | .bind( &ConfigData::noThrow ); |
| 4731 | |
| 4732 | cli["-i"]["--invisibles"] |
| 4733 | .describe( "show invisibles (tabs, newlines)" ) |
| 4734 | .bind( &ConfigData::showInvisibles ); |
| 4735 | |
| 4736 | cli["-o"]["--out"] |
| 4737 | .describe( "output filename" ) |
| 4738 | .bind( &ConfigData::outputFilename, "filename" ); |
| 4739 | |
| 4740 | cli["-r"]["--reporter"] |
| 4741 | // .placeholder( "name[:filename]" ) |
| 4742 | .describe( "reporter to use (defaults to console)" ) |
| 4743 | .bind( &addReporterName, "name" ); |
| 4744 | |
| 4745 | cli["-n"]["--name"] |
| 4746 | .describe( "suite name" ) |
| 4747 | .bind( &ConfigData::name, "name" ); |
| 4748 | |
| 4749 | cli["-a"]["--abort"] |
| 4750 | .describe( "abort at first failure" ) |
| 4751 | .bind( &abortAfterFirst ); |
| 4752 | |
| 4753 | cli["-x"]["--abortx"] |
| 4754 | .describe( "abort after x failures" ) |
| 4755 | .bind( &abortAfterX, "no. failures" ); |
| 4756 | |
| 4757 | cli["-w"]["--warn"] |
| 4758 | .describe( "enable warnings" ) |
no test coverage detected