← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands/document-metaserver-option into lp:widelands

 

Notabilis has proposed merging lp:~widelands-dev/widelands/document-metaserver-option into lp:widelands.

Commit message:
Documenting metaserver command line option.

Requested reviews:
  Widelands Developers (widelands-dev)

For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/document-metaserver-option/+merge/343841
-- 
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/document-metaserver-option into lp:widelands.
=== modified file 'src/wlapplication.cc'
--- src/wlapplication.cc	2018-04-07 16:59:00 +0000
+++ src/wlapplication.cc	2018-04-23 18:15:34 +0000
@@ -727,6 +727,9 @@
 	// Without this the following config options get dropped by check_used().
 	// Profile needs support for a Syntax definition to solve this in a
 	// sensible way
+
+	// TODO(Notabilis): Document this options in wlapplication_messages.cc
+	// Also, some of these does not seem to be used anywhere
 	s.get_bool("ai_training");
 	s.get_bool("auto_speed");
 	s.get_bool("fullscreen");

=== modified file 'src/wlapplication_messages.cc'
--- src/wlapplication_messages.cc	2018-04-07 16:59:00 +0000
+++ src/wlapplication_messages.cc	2018-04-23 18:15:34 +0000
@@ -43,6 +43,7 @@
 	std::cout << _("Usage: widelands <option0>=<value0> ... <optionN>=<valueN>") << endl << endl;
 	std::cout << _("Options:") << endl << endl;
 	std::cout << _(" --<config-entry-name>=value overwrites any config file setting") << endl
+	          << _("                      Note: New value will be written to config file") << endl
 	          << endl
 	          << _(" --datadir=DIRNAME    Use specified directory for the widelands\n"
 	               "                      data files")
@@ -77,6 +78,12 @@
 	          << _(" --rolling_autosave=[...]\n"
 	               "                      Use this many files for rolling autosaves")
 	          << endl
+	          << _(" --metaserver=[...]\n"
+	               "                      Connect to a different metaserver for internet gaming.")
+	          << endl
+	          << _(" --metaserverport=[...]\n"
+	               "                      Port number of the metaserver for internet gaming.")
+	          << endl
 	          << endl
 
 	          << _("Sound options:") << endl


Follow ups