Fix the "No valid file provided." sentence that was not being printed.
This commit is contained in:
parent
bbc980c6a9
commit
78cf850533
|
@ -21,6 +21,7 @@ int main(int argc, char* argv[]) {
|
||||||
}
|
}
|
||||||
else if (currentArg.ends_with(".ybcon")) files.push_back(currentArg);
|
else if (currentArg.ends_with(".ybcon")) files.push_back(currentArg);
|
||||||
}
|
}
|
||||||
|
if (!files.empty()) {
|
||||||
const set<string_view> uniqueFiles(files.begin(), files.end());
|
const set<string_view> uniqueFiles(files.begin(), files.end());
|
||||||
for (string_view fileName: uniqueFiles) {
|
for (string_view fileName: uniqueFiles) {
|
||||||
if (fileName != "none") {
|
if (fileName != "none") {
|
||||||
|
@ -32,6 +33,10 @@ int main(int argc, char* argv[]) {
|
||||||
outputFileContent(outputFile, transpiledString);
|
outputFileContent(outputFile, transpiledString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else cout << "No valid file provided.\n";
|
} else {
|
||||||
|
cout << "No valid file provided.\n"; goto exitPoint;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exitPoint:
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue