diff options
author | P. J. McDermott <pjm@nac.net> | 2011-12-12 23:31:09 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2011-12-12 23:31:09 (EST) |
commit | 001291dc21c95400c512c12afa2a786b8fa83e49 (patch) | |
tree | d0f8ccfb192c557f6dc3dda0691b780a81e7651f /src | |
parent | 20b5d2e337da85f46816ebfe9a60abfba241ec84 (diff) | |
download | cgol-001291dc21c95400c512c12afa2a786b8fa83e49.zip cgol-001291dc21c95400c512c12afa2a786b8fa83e49.tar.gz cgol-001291dc21c95400c512c12afa2a786b8fa83e49.tar.bz2 |
Add forgotten 'n' option case to switch construct.
Diffstat (limited to 'src')
-rw-r--r-- | src/cgol.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -30,7 +30,7 @@ void init_game(); void fini_game(); void fini_curses(); -static int width, height, seedprob, genrate; +static int width, height, seedprob, genrate, gens; static bool *grid_cur, *grid_next; int @@ -52,6 +52,9 @@ main(int argc, char **argv) case 'r': genrate = atoi(optarg); break; + case 'n': + gens = atoi(optarg); + break; default: usage(argv[0]); return 1; |