Make errors in option parsing actually _do_ something in interactive mode.

[originally from svn r7039]
This commit is contained in:
Jacob Nevins
2006-12-30 00:26:16 +00:00
parent 7834793e41
commit fc59e33845

10
gtk.c
View File

@ -1954,6 +1954,11 @@ int main(int argc, char **argv)
}
}
if (*errbuf) {
fputs(errbuf, stderr);
return 1;
}
/*
* Special standalone mode for generating puzzle IDs on the
* command line. Useful for generating puzzles to be printed
@ -1981,11 +1986,6 @@ int main(int argc, char **argv)
char *id;
document *doc = NULL;
if (*errbuf) {
fputs(errbuf, stderr);
return 1;
}
n = ngenerate;
me = midend_new(NULL, &thegame, NULL, NULL);