~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make errors in option parsing actually _do_ something in interactive mode.
[sgt/puzzles]
/
gtk.c
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
/*
* 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;
char *id;
document *doc = NULL;
- if (*errbuf) {
- fputs(errbuf, stderr);
- return 1;
- }
-
n = ngenerate;
me = midend_new(NULL, &thegame, NULL, NULL);
n = ngenerate;
me = midend_new(NULL, &thegame, NULL, NULL);