jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/460759 )
Change subject: [doc] Show pagegenerators options with imagetransfer.py ......................................................................
[doc] Show pagegenerators options with imagetransfer.py
- show pagegenerators options with -help - additional hint with suggest_help
Bug: T204448 Change-Id: I637c737a5d6b1fb2da9295d2ce2212917930200d --- M scripts/imagetransfer.py 1 file changed, 11 insertions(+), 2 deletions(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/imagetransfer.py b/scripts/imagetransfer.py index 6f606df..9719a55 100755 --- a/scripts/imagetransfer.py +++ b/scripts/imagetransfer.py @@ -5,7 +5,7 @@
Syntax:
- python pwb.py imagetransfer pagename [-interwiki] [-tolang:x] [-tofamily:y] + python pwb.py imagetransfer {<pagename>|<generator>} [<options>]
Arguments:
@@ -24,6 +24,8 @@ target site. If it is a normal page, it will offer to copy any of the images used on that page, or if the -interwiki argument is used, any of the images used on a page reachable via interwiki links. + +¶ms; """ # # (C) Andre Engels, 2004 @@ -42,6 +44,11 @@ from pywikibot.specialbots import UploadRobot
+docuReplacements = { + '¶ms;': pagegenerators.parameterHelp +} + + nowCommonsTemplate = { 'ar': '{{الآن كومنز|%s}}', 'de': '{{NowCommons|%s}}', @@ -309,7 +316,9 @@
gen = generator_factory.getCombinedGenerator() if not gen: - pywikibot.bot.suggest_help(missing_parameters=['page']) + pywikibot.bot.suggest_help( + missing_parameters=['page'], + additional_text='and no other generator was defined.') return False
if not targetLang and not targetFamily:
pywikibot-commits@lists.wikimedia.org