Author: cazfi
Date: Wed Feb 24 18:12:09 2016
New Revision: 32071

URL: http://svn.gna.org/viewcvs/freeciv?rev=32071&view=rev
Log:
Added support for commandline option --warnings also to client side.

See patch #6993

Modified:
    trunk/client/client_main.c

Modified: trunk/client/client_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/client_main.c?rev=32071&r1=32070&r2=32071&view=diff
==============================================================================
--- trunk/client/client_main.c  (original)
+++ trunk/client/client_main.c  Wed Feb 24 18:12:09 2016
@@ -37,6 +37,7 @@
 #include "bitvector.h"
 #include "capstr.h"
 #include "dataio.h"
+#include "deprecations.h"
 #include "fcbacktrace.h"
 #include "fciconv.h"
 #include "fcintl.h"
@@ -456,6 +457,8 @@
                   _("Use data file FILE.tilespec for tiles"));
       cmdhelp_add(help, "v", "version",
                   _("Print the version number"));
+      cmdhelp_add(help, "w", "warnings",
+                  _("Warn about deprecated modpack constructs"));
 
       /* The function below prints a header and footer for the options.
        * Furthermore, the options are sorted. */
@@ -545,6 +548,8 @@
         exit(EXIT_FAILURE);
       }
       free(option);
+    } else if (is_option("--warnings", argv[i])) {
+      deprecation_warnings_enable();
     } else if (is_option("--", argv[i])) {
       ui_separator = TRUE;
     } else {


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to