| 105 | } |
| 106 | |
| 107 | void Usage(char const * name) |
| 108 | { |
| 109 | cerr << "USAGE: " << name << " [options]\n\n"; |
| 110 | cerr << "OPTIONS:\n"; |
| 111 | DisplayOption(cerr, kFilterOption, "<ECMA Regexp>", "Run tests with names corresponding to regexp."); |
| 112 | DisplayOption(cerr, kSuppressOption, "<ECMA Regexp>", "Do not run tests with names corresponding to regexp."); |
| 113 | DisplayOption(cerr, kDataPathOptions, "<Path>", "Path to data files."); |
| 114 | DisplayOption(cerr, kResourcePathOptions, "<Path>", "Path to resources, styles and classificators."); |
| 115 | DisplayOption(cerr, kListAllTestsOption, "List all the tests in the test suite and exit."); |
| 116 | DisplayOption(cerr, kHelpOption, "Print this help message and exit."); |
| 117 | } |
| 118 | |
| 119 | void ParseOptions(int argc, char * argv[], CommandLineOptions & options) |
| 120 | { |