diff options
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; |