jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/404637 )

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


[doc] Show pagegenerators options with -help

- also remove unused NL constant

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

Approvals:
  Dalba: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/imagecopy.py b/scripts/imagecopy.py
index 6c8a731..c37fb0d 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,7 +93,11 @@
     Tkinter = _tk_error
     Tkdialog = object
 
-NL = ''
+# This is required for the text that is shown when you run this script
+# with the parameter -help.
+docuReplacements = {
+    '&params;': pagegenerators.parameterHelp
+}
 
 nowCommonsTemplate = {
     '_default': u'{{NowCommons|%s}}',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I384098245993581653758fd2fe11150063774201
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Dalba <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ryan2758 <[email protected]>
Gerrit-Reviewer: Zoranzoki21 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to