contest is now required
This commit is contained in:
parent
6dcb9d356f
commit
b55c859c4f
1 changed files with 2 additions and 2 deletions
|
@ -49,14 +49,14 @@ int main(int argc, char* argv[]) {
|
||||||
{"inception-level", optional_argument, 0, 'i'},
|
{"inception-level", optional_argument, 0, 'i'},
|
||||||
{"cross-ai", required_argument, 0, 'x'},
|
{"cross-ai", required_argument, 0, 'x'},
|
||||||
{"round-ai", required_argument, 0, 'o'},
|
{"round-ai", required_argument, 0, 'o'},
|
||||||
{"contest", no_argument, 0, 'c'},
|
{"contest", required_argument, 0, 'c'},
|
||||||
{"verbose", no_argument, 0, 'v'},
|
{"verbose", no_argument, 0, 'v'},
|
||||||
{"version", no_argument, 0, 'V'},
|
{"version", no_argument, 0, 'V'},
|
||||||
{"help", no_argument, 0, 'h'},
|
{"help", no_argument, 0, 'h'},
|
||||||
{0, 0, 0, 0}
|
{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) {
|
switch (optc) {
|
||||||
case 'i': /* 'a' option */
|
case 'i': /* 'a' option */
|
||||||
if ( OPTIONAL_ARGUMENT_IS_PRESENT ) {
|
if ( OPTIONAL_ARGUMENT_IS_PRESENT ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue