error on multiple output files
This commit is contained in:
parent
0b9398f015
commit
87abdd99c6
@ -260,6 +260,12 @@ static inline Args parse_args(int argc, char** argv)
|
||||
REPORTF_ERROR("%s", "no filename given to -o");
|
||||
exit(1);
|
||||
}
|
||||
if (output_file != NULL) {
|
||||
REPORTF_ERROR(
|
||||
"multiple output filenames specified, original was '%s'",
|
||||
output_file);
|
||||
exit(1);
|
||||
}
|
||||
output_file = argv[i];
|
||||
} else {
|
||||
if (input_file != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user