Revision: 7887
Author:   xqt
Date:     2010-01-21 17:47:24 +0000 (Thu, 21 Jan 2010)

Log Message:
-----------
command line option to enable/disable cosmetic_changes (feature request 
#2936228)

Modified Paths:
--------------
    trunk/pywikipedia/wikipedia.py

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py      2010-01-20 06:31:50 UTC (rev 7886)
+++ trunk/pywikipedia/wikipedia.py      2010-01-21 17:47:24 UTC (rev 7887)
@@ -8037,6 +8037,9 @@
         elif arg.startswith('-daemonize:'):
             import daemonize
             daemonize.daemonize(redirect_std = arg[11:])
+        elif arg == "-cosmeticchanges" or arg == "-cc":
+            config.cosmetic_changes = not config.cosmetic_changes
+            output(u'NOTE: option cosmetic_changes is %s\n' % 
config.cosmetic_changes)
         else:
             # the argument is not global. Let the specific bot script care
             # about it.
@@ -8514,6 +8517,10 @@
 
 -verbose          Have the bot provide additional output that may be useful in
 -v                debugging.
+
+-cosmeticchanges  Toggles the cosmetic_changes setting made in config.py or
+-cc               user_config.py to its inverse and overrules it. All other
+                  settings and restrictions are untouched.
 '''
     output(globalHelp, toStdout = True)
     try:



_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn

Reply via email to