Revision: 7364
Author:   nicdumz
Date:     2009-10-04 15:08:53 +0000 (Sun, 04 Oct 2009)

Log Message:
-----------
Improving docstrings for multiple replacements.
Patch By Santiago Mola

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

Modified: trunk/pywikipedia/replace.py
===================================================================
--- trunk/pywikipedia/replace.py        2009-10-03 12:19:39 UTC (rev 7363)
+++ trunk/pywikipedia/replace.py        2009-10-04 15:08:53 UTC (rev 7364)
@@ -86,6 +86,8 @@
                   text. If the -regex argument is given, the first argument
                   will be regarded as a regular expression, and the second
                   argument might contain expressions like \\1 or \g<name>.
+                  It is possible to introduce more than one pair of old text
+                  and replacement.
 
 Examples:
 
@@ -100,6 +102,9 @@
 
     python replace.py -xml:foobar.xml "Errror" "Error" -namespace:0
 
+If you want to do more than one replacement at a time, use this:
+    python replace.py -xml:foobar.xml "Errror" "Error" "Faail" "Fail" 
-namespace:0
+
 If you have a page called 'John Doe' and want to fix the format of ISBNs, use:
 
     python replace.py -page:John_Doe -fix:isbn



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

Reply via email to