Add verbose option
This commit is contained in:
parent
9f40993a49
commit
5de78910db
1 changed files with 8 additions and 2 deletions
|
@ -42,7 +42,7 @@ int main(int argc, char* argv[]) {
|
|||
int optc;
|
||||
int cross_ai, round_ai = 0;
|
||||
int inception_level = 0;
|
||||
bool contest_mode = false;
|
||||
bool verbose, contest_mode = false;
|
||||
char * contest_file;
|
||||
static struct option long_opts[] =
|
||||
{
|
||||
|
@ -118,14 +118,20 @@ int main(int argc, char* argv[]) {
|
|||
contest_mode = true;
|
||||
printf ("contest activated\n");
|
||||
break;
|
||||
|
||||
case 'v':
|
||||
verbose = true;
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
printf("utictactoe %d.%d.%d\n", VERSION, SUBVERSION, REVISION);
|
||||
printf("This software implements a full ultimate tictactoe game.\n");
|
||||
exit(EXIT_SUCCESS);
|
||||
|
||||
|
||||
case 'h':
|
||||
help();
|
||||
exit(EXIT_SUCCESS);
|
||||
|
||||
default:
|
||||
fprintf(stderr, "Try `utictactie --help' for more information.\n");
|
||||
exit (EXIT_FAILURE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue