Fixed -r option. Added test to make sure it doesn't break later.
This commit is contained in:
parent
70838f7001
commit
be115e9567
3 changed files with 12 additions and 1 deletions
2
main.c
2
main.c
|
@ -61,7 +61,7 @@ int main(int argc, char *argv[])
|
|||
/* Options. */
|
||||
|
||||
#ifndef ADVENT_NOSAVE
|
||||
const char* opts = "l:or";
|
||||
const char* opts = "l:or:";
|
||||
const char* usage = "Usage: %s [-l logfilename] [-o] [-r restorefilename]\n";
|
||||
#else
|
||||
const char* opts = "l:o";
|
||||
|
|
9
tests/saveresumeopt.chk
Normal file
9
tests/saveresumeopt.chk
Normal 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
2
tests/saveresumeopt.log
Normal file
|
@ -0,0 +1,2 @@
|
|||
## Simple quit
|
||||
#options: -r saveresume.adv
|
Loading…
Add table
Add a link
Reference in a new issue