Revision: 8802 Author: xqt Date: 2010-12-26 14:54:05 +0000 (Sun, 26 Dec 2010) Log Message: ----------- doc for -page parameter
Modified Paths: -------------- branches/rewrite/pywikibot/pagegenerators.py
Modified: branches/rewrite/pywikibot/pagegenerators.py =================================================================== --- branches/rewrite/pywikibot/pagegenerators.py 2010-12-26 14:14:49 UTC (rev 8801) +++ branches/rewrite/pywikibot/pagegenerators.py 2010-12-26 14:54:05 UTC (rev 8802) @@ -150,6 +150,9 @@ -yahoo Work on all pages that are found in a Yahoo search. Depends on python module pYsearch. See yahoo_appid in config.py for instructions. + +-page Work on a single page. Argument can also be given as + "-page:pagetitle". """
docuReplacements = {'¶ms;': parameterHelp} @@ -318,11 +321,11 @@ self.limit = int(arg[len('-limit:'):]) return True elif arg.startswith('-catr'): - gen = self.getCategoryGen(arg, len("-catr"), recurse = True) + gen = self.getCategoryGen(arg, len('-catr'), recurse = True) elif arg.startswith('-category'): gen = self.getCategoryGen(arg, len('-category')) elif arg.startswith('-cat'): - gen = self.getCategoryGen(arg, len("-cat")) + gen = self.getCategoryGen(arg, len('-cat')) elif arg.startswith('-subcatsr'): gen = self.setSubCategoriesGen(arg, 9, recurse = True) elif arg.startswith('-subcats'):
pywikipedia-svn@lists.wikimedia.org