Skip to content

Commit 13be16d

Browse files
committed
Fix for aliased command line option
1 parent fc36721 commit 13be16d

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ OPTIONS
5454
-p,--print Print output to "print.log"
5555
-k,--key Log key presses to "key.log"
5656
-i,--input <string> Read keyboard input from a file
57-
-S,--seed <unsigned> Initial random number seed [0]
57+
-r,--seed <unsigned> Initial random number seed [0]
5858
-u,--undo <unsigned> Number of undo buffers [4]
5959
-s,--save-dir <string> Directory for save files ["Saves"]
6060
```

Source/common/Options.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ struct Options
1818
STB::Option<bool> print{ 'p', "print", "Print output to \"print.log\""};
1919
STB::Option<bool> key{ 'k', "key", "Log key presses to \"key.log\""};
2020
STB::Option<const char*> input{ 'i', "input", "Read keyboard input from a file"};
21-
STB::Option<unsigned> seed{ 'S', "seed", "Initial random number seed", 0};
21+
STB::Option<unsigned> seed{ 'r', "seed", "Initial random number seed", 0};
2222
STB::Option<unsigned> undo{ 'u', "undo", "Number of undo buffers", 4};
2323
STB::Option<const char*> save_dir{'s', "save-dir", "Directory for save files", "Saves"};
2424
};
25-

index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ launcher is not necessary.
1212

1313
Several excellent Z-code engines already exist, and some have already been ported to the Kindle.
1414

15+
![Screenshot](docs/Screenshot.png)
16+
1517
## Status
1618

1719
**Zif** is playable and has been built and verified to run on various platforms. Almost all Z-code files, .z# and .zblorb, downloaded from the interactive fiction archive, start
1820
to run as expected. (817/819)
1921

2022
Although further testing is required, initial results indicate that enough functionality has been implemented to play most available games.
2123

22-
![Screenshot](docs/Screenshot.png)
23-
2424
### Supported Platforms
2525

2626
+ Linux
@@ -60,7 +60,7 @@ OPTIONS
6060
-p,--print Print output to "print.log"
6161
-k,--key Log key presses to "key.log"
6262
-i,--input <string> Read keyboard input from a file
63-
-S,--seed <unsigned> Initial random number seed [0]
63+
-r,--seed <unsigned> Initial random number seed [0]
6464
-u,--undo <unsigned> Number of undo buffers [4]
6565
-s,--save-dir <string> Directory for save files ["Saves"]
6666
```

0 commit comments

Comments
 (0)