Error if no input file given

This commit is contained in:
josh committed 2026-11-01 15:43:30 -05:00
1 parent 0d36f13b17
commit 68d5b39cfd
1 file changed
+5
+5
View File
@@ -10,6 +10,11 @@ int main(int argc, char * argv[])
{
return rc - 1;
}
if (cli.input_file.empty())
{
fprintf(stderr, "Error: no input file specified\n");
return 1;
}
Engine engine(cli.params);
return engine.run(cli.input_file, cli.output_file);
}