Input capture to 'sst-input.log' now happens automatically when idebug is on.
[super-star-trek.git] / 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;
 
-    while ((option = getopt(argc, argv, "t")) != -1) {
+    while ((option = getopt(argc, argv, "tx")) != -1) {
        switch (option) {
        case 't':
            game.options |= OPTION_TTY;
            game.options &=~ OPTION_CURSES;
            break;
+       case 'x':
+           idebug = true;
+           break;
        default:
-           fprintf(stderr, "usage: sst [-t] [startcommand...].\n");
+           fprintf(stderr, "usage: sst [-t] [-x] [startcommand...].\n");
            exit(0);
        }
     }