Error if no input file given
This commit is contained in:
1 parent
0d36f13b17
commit
68d5b39cfd
1 file changed
+5
@@ -10,6 +10,11 @@ int main(int argc, char * argv[])
|
|||||||
{
|
{
|
||||||
return rc - 1;
|
return rc - 1;
|
||||||
}
|
}
|
||||||
|
if (cli.input_file.empty())
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Error: no input file specified\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
Engine engine(cli.params);
|
Engine engine(cli.params);
|
||||||
return engine.run(cli.input_file, cli.output_file);
|
return engine.run(cli.input_file, cli.output_file);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user