jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[IMPR] blockpageschecker.py: Improvisation of documentation

* Removed xml parameter from documentation because it is already
included by pagegenerators
* Arranged the order of non-default parameters
* Updated copyright year for Pywikibot team

Change-Id: Ic383c8f9f72823620ab360bbe1ead4ac6050bc42
---
M scripts/blockpageschecker.py
1 file changed, 16 insertions(+), 20 deletions(-)

diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py
index 72bf4cd..8145603 100755
--- a/scripts/blockpageschecker.py
+++ b/scripts/blockpageschecker.py
@@ -14,29 +14,25 @@

&params;

--xml Retrieve information from a local XML dump (pages-articles
- or pages-meta-current, see https://dumps.wikimedia.org).
- Argument can also be given as "-xml:filename".
-
--protectedpages: Check all the blocked pages; useful when you have not
- categories or when you have problems with them. (add the
- namespace after ":" where you want to check - default checks
- all protected pages.)
-
--moveprotected: Same as -protectedpages, for moveprotected pages
-
Furthermore, the following command line parameters are supported:

--always Doesn't ask every time whether the bot should make the change.
- Do it always.
+-protectedpages Check all the blocked pages; useful when you have not
+ categories or when you have problems with them. (add the
+ namespace after ":" where you want to check - default checks
+ all protected pages.)

--show When the bot can't delete the template from the page (wrong
- regex or something like that) it will ask you if it should show
- the page on your browser.
- (attention: pages included may give false positives!)
+-moveprotected Same as -protectedpages, for moveprotected pages

--move The bot will check if the page is blocked also for the move
- option, not only for edit
+-always Doesn't ask every time whether the bot should make the change.
+ Do it always.
+
+-show When the bot can't delete the template from the page (wrong
+ regex or something like that) it will ask you if it should
+ show the page on your browser.
+ (attention: pages included may give false positives!)
+
+-move The bot will check if the page is blocked also for the move
+ option, not only for edit

--- Example of how to use the script ---

@@ -51,7 +47,7 @@
# (C) Monobi a.k.a. Wikihermit, 2007
# (C) Filnik, 2007-2011
# (C) Nicolas Dumazet (NicDumZ), 2008-2009
-# (C) Pywikibot team, 2007-2018
+# (C) Pywikibot team, 2007-2019
#
# Distributed under the terms of the MIT license.
#

To view, visit change 491387. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic383c8f9f72823620ab360bbe1ead4ac6050bc42
Gerrit-Change-Number: 491387
Gerrit-PatchSet: 4
Gerrit-Owner: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)