From b55c859c4f370d816e759c9335bc5aa0097c266a Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Fri, 17 Sep 2021 15:46:13 +0200 Subject: [PATCH] contest is now required --- src/utictactoe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) {