~mdw
/
sgt
/
puzzles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88ceda4
)
Make errors in option parsing actually _do_ something in interactive mode.
author
jacob
<jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 30 Dec 2006 00:26:16 +0000
(
00:26
+0000)
committer
jacob
<jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 30 Dec 2006 00:26:16 +0000
(
00:26
+0000)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7039
cda61777
-01e9-0310-a592-
d414129be87e
gtk.c
patch
|
blob
|
blame
|
history
diff --git
a/gtk.c
b/gtk.c
index
27c3ea5
..
4ef0839
100644
(file)
--- a/
gtk.c
+++ b/
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
* 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);