Xqt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/404637 )

Change subject: [doc] Show pagegenerators options with -help
......................................................................

[doc] Show pagegenerators options with -help

Change-Id: I384098245993581653758fd2fe11150063774201
---
M scripts/imagecopy.py
1 file changed, 8 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/37/404637/1

diff --git a/scripts/imagecopy.py b/scripts/imagecopy.py
index 6c8a731..2a9cd39 100644
--- a/scripts/imagecopy.py
+++ b/scripts/imagecopy.py
@@ -19,6 +19,8 @@
 
 Command line options:
 
+&params;
+
 -always      Skip the GUI validation
 
 -setcat:     Set the category of the copied image
@@ -51,9 +53,7 @@
 
  python pwb.py imagecopy.py -page:Image:<imagename> -delete
 
-See pagegenerators.py for more ways to get a list of images.
 By default the bot works on your home wiki (set in user-config)
-
 """
 # Based on upload.py by:
 # (C) Rob W.W. Hooft, Andre Engels 2003-2007
@@ -93,6 +93,12 @@
     Tkinter = _tk_error
     Tkdialog = object
 
+# This is required for the text that is shown when you run this script
+# with the parameter -help.
+docuReplacements = {
+    '&params;': pagegenerators.parameterHelp
+}
+
 NL = ''
 
 nowCommonsTemplate = {

-- 
To view, visit https://gerrit.wikimedia.org/r/404637
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I384098245993581653758fd2fe11150063774201
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to