mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Make errors in option parsing actually _do_ something in interactive mode.
[originally from svn r7039]
This commit is contained in:
10
gtk.c
10
gtk.c
@ -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
|
* Special standalone mode for generating puzzle IDs on the
|
||||||
* command line. Useful for generating puzzles to be printed
|
* command line. Useful for generating puzzles to be printed
|
||||||
@ -1981,11 +1986,6 @@ int main(int argc, char **argv)
|
|||||||
char *id;
|
char *id;
|
||||||
document *doc = NULL;
|
document *doc = NULL;
|
||||||
|
|
||||||
if (*errbuf) {
|
|
||||||
fputs(errbuf, stderr);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
n = ngenerate;
|
n = ngenerate;
|
||||||
|
|
||||||
me = midend_new(NULL, &thegame, NULL, NULL);
|
me = midend_new(NULL, &thegame, NULL, NULL);
|
||||||
|
Reference in New Issue
Block a user