summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-11-05 00:07:04 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-11-05 00:07:04 +0000
commitbeec5dc0084a7efa2527c849aa68b9fa663829ae (patch)
tree576a0fe7f807036f3580a07a58cc1982c833631d
parent61b6ae09b58f24d4ada42b2e2ee9cc73e710d242 (diff)
downloadmana-client-beec5dc0084a7efa2527c849aa68b9fa663829ae.tar.gz
mana-client-beec5dc0084a7efa2527c849aa68b9fa663829ae.tar.bz2
mana-client-beec5dc0084a7efa2527c849aa68b9fa663829ae.tar.xz
mana-client-beec5dc0084a7efa2527c849aa68b9fa663829ae.zip
Use \n instead of std::endl when writing to stdout.
-rw-r--r--ChangeLog1
-rw-r--r--src/main.cpp25
2 files changed, 13 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 9bfa084a..45b92cbd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2006-11-04 Björn Steinbrink <B.Steinbrink@gmx.de>
+ * src/main.cpp: Use \n instead of std::endl when writing to stdout.
* src/gui/updatewindow.cpp, src/gui/updatewindow.h: Removed useless
addRow method.
* src/main.cpp: Restore the homeDir config entry (temporarily).
diff --git a/src/main.cpp b/src/main.cpp
index 28128494..c1919bc0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -352,19 +352,18 @@ void exit_engine()
void printHelp()
{
- std::cout
- << "tmw" << std::endl << std::endl
- << "Options: " << std::endl
- << " -h --help : Display this help" << std::endl
- << " -u --skipupdate : Skip the update process" << std::endl
- << " -U --username : Login with this username" << std::endl
- << " -P --password : Login with this password" << std::endl
- << " -D --default : Bypass the login process with default settings"
- << std::endl
- << " -s --server : Login Server name or IP" << std::endl
- << " -o --port : Login Server Port" << std::endl
- << " -p --playername : Login with this player" << std::endl
- << " -C --configfile : Configuration file to use" << std::endl;
+ std::cout <<
+ "tmw\n\n"
+ "Options:\n"
+ " -h --help : Display this help\n"
+ " -u --skipupdate : Skip the update process\n"
+ " -U --username : Login with this username\n"
+ " -P --password : Login with this password\n"
+ " -D --default : Bypass the login process with default settings\n"
+ " -s --server : Login Server name or IP\n"
+ " -o --port : Login Server Port\n"
+ " -p --playername : Login with this player\n"
+ " -C --configfile : Configuration file to use\n";
}
void parseOptions(int argc, char *argv[], Options &options)