Lines Matching refs:cmdLine
76 static void registerOptions (de::cmdline::Parser& parser)
78 using de::cmdline::Option;
79 using de::cmdline::NamedValue;
264 static bool runCompare (const CommandLine& cmdLine, std::ostream& dst)
270 XE_CHECK(!cmdLine.filenames.empty());
275 results.resize(cmdLine.filenames.size());
279 for (int ndx = 0; ndx < (int)cmdLine.filenames.size(); ndx++)
281 readers.push_back(de::SharedPtr<LogFileReader>(new LogFileReader(results[ndx], cmdLine.filenames[ndx].c_str())));
285 for (int ndx = 0; ndx < (int)cmdLine.filenames.size(); ndx++)
290 batchNames.push_back(de::FilePath(cmdLine.filenames[ndx].c_str()).getBaseName());
302 if (cmdLine.outFormat == OUTPUTFORMAT_CSV)
331 if (cmdLine.outMode == OUTPUTMODE_ALL || !allEqual)
333 if (cmdLine.outFormat == OUTPUTFORMAT_TEXT)
340 else if (cmdLine.outFormat == OUTPUTFORMAT_CSV)
344 dst << "," << (cmdLine.outValue == OUTPUTVALUE_STATUS_CODE ? getStatusCodeName(iter->statusCode) : iter->statusDetails.c_str());
352 if (cmdLine.outFormat == OUTPUTFORMAT_TEXT)
367 static bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv)
369 de::cmdline::Parser parser;
370 de::cmdline::CommandLine opts;
384 cmdLine.outFormat = opts.getOption<opt::OutFormat>();
385 cmdLine.outMode = opts.getOption<opt::OutMode>();
386 cmdLine.outValue = opts.getOption<opt::OutValue>();
387 cmdLine.filenames = opts.getArgs();
394 CommandLine cmdLine;
396 if (!parseCommandLine(cmdLine, argc, argv))
401 bool compareOk = runCompare(cmdLine, std::cout);