Murfel has uploaded a new change for review.
https://gerrit.wikimedia.org/r/257822
Change subject: Rename -time into -sleep
......................................................................
Rename -time into -sleep
Bug: T120894
Change-Id: Icb8c97a836ac21ac685fd445622ec2b3d8daf499
---
M scripts/checkimages.py
1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/22/257822/1
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 762f6d6..7d77d4c 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -29,7 +29,9 @@
-break To break the bot after the first check (default: recursive)
--time[:#] Time in seconds between repeat runs (default: 30)
+-sleep[:#] Time in seconds between repeat runs (default: 30)
+
+-time[:#] The -time option is deprecated. Use -sleep instead.
-wait[:#] Wait x second before check the images (default: 0)
@@ -1600,7 +1602,15 @@
u'How many files do you want to check?'))
else:
limit = int(arg[7:])
+ if arg.startswith('-sleep'):
+ if len(arg) == 6:
+ time_sleep = int(pywikibot.input(
+ u'How many seconds do you want runs to be apart?'))
+ else:
+ time_sleep = int(arg[7:])
if arg.startswith('-time'):
+ pywikibot.warning('The -time option is deprecated. '
+ 'Use -sleep instead.')
if len(arg) == 5:
time_sleep = int(pywikibot.input(
u'How many seconds do you want runs to be apart?'))
--
To view, visit https://gerrit.wikimedia.org/r/257822
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb8c97a836ac21ac685fd445622ec2b3d8daf499
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Murfel <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits