[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/game/game_factory.cpp [antoine-1]
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/game/game_factory.cpp [antoine-1] |
Date: |
Sun, 23 Oct 2005 15:12:15 -0400 |
Index: eliot/game/game_factory.cpp
diff -u eliot/game/game_factory.cpp:1.5.2.2 eliot/game/game_factory.cpp:1.5.2.3
--- eliot/game/game_factory.cpp:1.5.2.2 Sun Oct 23 18:44:43 2005
+++ eliot/game/game_factory.cpp Sun Oct 23 19:12:14 2005
@@ -2,7 +2,7 @@
* Copyright (C) 2005 Eliot
* Authors: Olivier Teuliere <address@hidden>
*
- * $Id: game_factory.cpp,v 1.5.2.2 2005/10/23 18:44:43 afrab Exp $
+ * $Id: game_factory.cpp,v 1.5.2.3 2005/10/23 19:12:14 ipkiss Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -135,12 +135,12 @@
// 2) Make sure the mandatory options are present
if (!found_d || !found_m)
{
- cerr << "Mandatory option missing: ";
+ std::cerr << "Mandatory option missing: ";
if (!found_d)
- cerr << "dict";
+ std::cerr << "dict";
else if (!found_m)
- cerr << "mode";
- cerr << "\n";
+ std::cerr << "mode";
+ std::cerr << "\n";
printUsage(argv[0]);
return NULL;
@@ -199,24 +199,24 @@
void GameFactory::printUsage(const std::string &iBinaryName) const
{
std::cout << "Usage: " << iBinaryName << " [options]\n"
- << "\n"
- << " -h, --help Print this help and exit\n"
- << " -v, --version Print version information and
exit\n"
- << " -m, --mode {duplicate,d,freegame,f,training,t}\n"
- << " Choose game mode\n"
- << " -d, --dict <string> Choose a dictionary\n"
- << " --human Add a human player\n"
- << " --ai Add a AI (Artificial Intelligence)
player\n"
- << " --joker Play with the \"Joker game\"
variant\n";
+ << "\n"
+ << " -h, --help Print this help and exit\n"
+ << " -v, --version Print version information and
exit\n"
+ << " -m, --mode {duplicate,d,freegame,f,training,t}\n"
+ << " Choose game mode\n"
+ << " -d, --dict <string> Choose a dictionary\n"
+ << " --human Add a human player\n"
+ << " --ai Add a AI (Artificial
Intelligence) player\n"
+ << " --joker Play with the \"Joker game\"
variant\n";
}
void GameFactory::printVersion() const
{
std::cout << PACKAGE_STRING << "\n"
- << "This program comes with NO WARRANTY, to the extent permitted by
"
- << "law.\nYou may redistribute it under the terms of the GNU
General "
- << "Public License;\nsee the file named COPYING for details.\n";
+ << "This program comes with NO WARRANTY, to the extent permitted
by "
+ << "law.\nYou may redistribute it under the terms of the GNU
General "
+ << "Public License;\nsee the file named COPYING for details.\n";
}