Exiting converter if no input file is given.
This commit is contained in:
parent
98e78b915e
commit
af8f85c3c4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user