Exiting converter if no input file is given.

This commit is contained in:
Faerbit 2014-12-03 11:09:37 +01:00
parent 98e78b915e
commit af8f85c3c4

View File

@ -7,6 +7,7 @@
int main( int argc, char *argv[] ){
if (argc <= 1){
std::cout << "Converter needs the level (1,2,...) as input." << std::endl;
exit(-1);
}
std::string levelString = argv[1];
Converter conv = Converter(levelString);