Fixed -r option. Added test to make sure it doesn't break later.

This commit is contained in:
Aaron Traas 2017-07-02 01:36:28 -04:00
parent 70838f7001
commit be115e9567
3 changed files with 12 additions and 1 deletions

2
main.c
View file

@ -61,7 +61,7 @@ int main(int argc, char *argv[])
/* Options. */ /* Options. */
#ifndef ADVENT_NOSAVE #ifndef ADVENT_NOSAVE
const char* opts = "l:or"; const char* opts = "l:or:";
const char* usage = "Usage: %s [-l logfilename] [-o] [-r restorefilename]\n"; const char* usage = "Usage: %s [-l logfilename] [-o] [-r restorefilename]\n";
#else #else
const char* opts = "l:o"; const char* opts = "l:o";

9
tests/saveresumeopt.chk Normal file
View file

@ -0,0 +1,9 @@
You're in front of building.
You scored 27 out of a possible 430, using 2 turns.
You are obviously a rank amateur. Better luck next time.
To achieve the next higher rating, you need 19 more points.

2
tests/saveresumeopt.log Normal file
View file

@ -0,0 +1,2 @@
## Simple quit
#options: -r saveresume.adv