projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Input capture to 'sst-input.log' now happens automatically when idebug is on.
[super-star-trek.git]
/
src
/
sst.c
diff --git
a/src/sst.c
b/src/sst.c
index 0679cbb9c271a9b8bfe759fa5756eda213accec3..5d34a0dd43c58caee73dfeb6c61c8584c5c92162 100644
(file)
--- a/
src/sst.c
+++ b/
src/sst.c
@@
-584,14
+584,17
@@
int main(int argc, char **argv)
else
game.options |= OPTION_TTY;
else
game.options |= OPTION_TTY;
- while ((option = getopt(argc, argv, "t")) != -1) {
+ while ((option = getopt(argc, argv, "t
x
")) != -1) {
switch (option) {
case 't':
game.options |= OPTION_TTY;
game.options &=~ OPTION_CURSES;
break;
switch (option) {
case 't':
game.options |= OPTION_TTY;
game.options &=~ OPTION_CURSES;
break;
+ case 'x':
+ idebug = true;
+ break;
default:
default:
- fprintf(stderr, "usage: sst [-t] [startcommand...].\n");
+ fprintf(stderr, "usage: sst [-t] [
-x] [
startcommand...].\n");
exit(0);
}
}
exit(0);
}
}