Removed now unnecessary check for number of files with SAS parser.

This commit is contained in:
Patrick Lühne 2016-06-10 00:51:31 +02:00
parent 8bb25e9b90
commit c6dc84f27f

View File

@ -69,14 +69,6 @@ int main(int argc, char **argv)
if (variablesMap.count("input")) if (variablesMap.count("input"))
{ {
const auto &inputFiles = variablesMap["input"].as<std::vector<std::string>>(); const auto &inputFiles = variablesMap["input"].as<std::vector<std::string>>();
if (inputFiles.size() > 1)
{
std::cerr << "Error: Only one input file allowed for SAS translation" << std::endl;
printHelp();
return EXIT_FAILURE;
}
const auto sasDescription = plasp::sas::Description::fromFile(inputFiles.front()); const auto sasDescription = plasp::sas::Description::fromFile(inputFiles.front());
const auto sasTranslator = plasp::sas::TranslatorASP(sasDescription); const auto sasTranslator = plasp::sas::TranslatorASP(sasDescription);
sasTranslator.translate(std::cout); sasTranslator.translate(std::cout);