diff --git a/src/utictactoe.c b/src/utictactoe.c index ba6943a..001f255 100644 --- a/src/utictactoe.c +++ b/src/utictactoe.c @@ -49,14 +49,14 @@ int main(int argc, char* argv[]) { {"inception-level", optional_argument, 0, 'i'}, {"cross-ai", required_argument, 0, 'x'}, {"round-ai", required_argument, 0, 'o'}, - {"contest", no_argument, 0, 'c'}, + {"contest", required_argument, 0, 'c'}, {"verbose", no_argument, 0, 'v'}, {"version", no_argument, 0, 'V'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; - while ((optc = getopt_long (argc, argv, "i::x:o:cvVh", long_opts, NULL)) != -1){ + while ((optc = getopt_long (argc, argv, "i::x:o:c:vVh", long_opts, NULL)) != -1){ switch (optc) { case 'i': /* 'a' option */ if ( OPTIONAL_ARGUMENT_IS_PRESENT ) {