Exiting converter if no input file is given.
This commit is contained in:
parent
581e1cd111
commit
7a76519edb
@ -7,6 +7,7 @@
|
|||||||
int main( int argc, char *argv[] ){
|
int main( int argc, char *argv[] ){
|
||||||
if (argc <= 1){
|
if (argc <= 1){
|
||||||
std::cout << "Converter needs the level (1,2,...) as input." << std::endl;
|
std::cout << "Converter needs the level (1,2,...) as input." << std::endl;
|
||||||
|
exit(-1);
|
||||||
}
|
}
|
||||||
std::string levelString = argv[1];
|
std::string levelString = argv[1];
|
||||||
Converter conv = Converter(levelString);
|
Converter conv = Converter(levelString);
|
||||||
|
Loading…
Reference in New Issue
Block a user