No need to tease with excluded options

This commit is contained in:
NHOrus 2017-06-19 19:11:07 +03:00
parent f84c5033e9
commit 93a76e9d2f

4
main.c
View file

@ -91,6 +91,7 @@ int main(int argc, char *argv[])
oldstyle = true; oldstyle = true;
editline = prompt = false; editline = prompt = false;
break; break;
#ifndef ADVENT_NOSAVE
case 'r': case 'r':
rfp = fopen(optarg, "r"); rfp = fopen(optarg, "r");
if (rfp == NULL) if (rfp == NULL)
@ -99,6 +100,7 @@ int main(int argc, char *argv[])
optarg); optarg);
signal(SIGINT, sig_handler); signal(SIGINT, sig_handler);
break; break;
#endif
case 's': case 's':
editline = false; editline = false;
break; break;
@ -109,8 +111,10 @@ int main(int argc, char *argv[])
" where -l creates a log file of your game named as specified'\n"); " where -l creates a log file of your game named as specified'\n");
fprintf(stderr, fprintf(stderr,
" -o 'oldstyle' (no prompt, no command editing, displays 'Initialising...')\n"); " -o 'oldstyle' (no prompt, no command editing, displays 'Initialising...')\n");
#ifndef ADVENT_NOSAVE
fprintf(stderr, fprintf(stderr,
" -r indicates restoring from specified saved game file\n"); " -r indicates restoring from specified saved game file\n");
#endif
fprintf(stderr, fprintf(stderr,
" -s indicates playing with command editing suppressed\n"); " -s indicates playing with command editing suppressed\n");
exit(-1); exit(-1);