bool CommandLineArguments::parse()
{
	bool correctParameters = true;
	for (int i = 1; i < ac; i++) {
		SimpleString argument = av[i];
		if (argument == "-v")
			verbose_ = true;
		else if (argument.startsWith("-r"))
			SetRepeatCount(ac, av, i);
      	else if (argument.startsWith("-g"))
        	SetGroupFilter(ac, av, i);
      	else if (argument.startsWith("-n"))
        	SetNameFilter(ac, av, i);
      	else if (argument.startsWith("-o"))
        	correctParameters = SetOutputType(ac, av, i);
      	else if (argument.startsWith("-p"))
      		correctParameters = plugin_->parseArguments(ac, av, i);
		else
			correctParameters = false;

		if (correctParameters == false) {
          return false;
        }
	}
	return true;
}
Beispiel #2
0
SimpleString TestFailure::createUserText(const SimpleString& text)
{
    SimpleString userMessage = "";
    if (!text.isEmpty())
    {
        //This is a kludge to turn off "Message: " for this case.
        //I don't think "Message: " adds anything,a s you get to see the
        //message. I propose we remove "Message: " lead in
        if (!text.startsWith("LONGS_EQUAL"))
            userMessage += "Message: ";
        userMessage += text;
        userMessage += "\n\t";
    }
    return userMessage;
}