#include <ViewerTest_CmdParser.hxx>
#include <Draw.hxx>
+#include <Message.hxx>
#include <ViewerTest.hxx>
#include <algorithm>
}
else
{
- std::cerr << "Error: unknown argument '" << anOptionName << "'\n";
+ Message::SendFail() << "Error: unknown argument '" << anOptionName << "'";
return;
}
}
const bool aResult = (anOptionArguments.size() >= theMandatoryArgsNb);
if (isFatal && !aResult)
{
- std::cerr << "Error: wrong syntax at option '" << myOptionStorage[theOptionKey].Name << "'\n"
- << "At least " << theMandatoryArgsNb << "expected, but only " << anOptionArguments.size()
- << "provided.\n";
+ Message::SendFail() << "Error: wrong syntax at option '" << myOptionStorage[theOptionKey].Name << "'\n"
+ << "At least " << theMandatoryArgsNb << "expected, but only " << anOptionArguments.size()
+ << "provided.";
}
return aResult;
}