X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsst.c;h=5d34a0dd43c58caee73dfeb6c61c8584c5c92162;hp=0679cbb9c271a9b8bfe759fa5756eda213accec3;hb=fd5a1ba781a0c37fa6181aa8e856d77d321df7a5;hpb=459d6afcbe13be588b29c8bd1fbffb39b13fdee1 diff --git a/src/sst.c b/src/sst.c index 0679cbb..5d34a0d 100644 --- 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); } }