Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/266212

Change subject: [BREAK] Solve -user argument conflict.
......................................................................

[BREAK] Solve -user argument conflict.

-user is a global option; rename the local implementation

bug: T87635
Change-Id: Ifb07f1e0d2ddc0e7cb780e21565cdaa04860c5d2
---
M scripts/template.py
1 file changed, 8 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/12/266212/1

diff --git a/scripts/template.py b/scripts/template.py
index fba031c..783da18 100755
--- a/scripts/template.py
+++ b/scripts/template.py
@@ -29,13 +29,13 @@
              info will be loaded from the maintenance page of the live wiki.
              argument can also be given as "-xml:filename.xml".
 
--user:       Only process pages edited by a given user
+-onlyuser:   Only process pages edited by a given user
 
 -skipuser:   Only process pages not edited by a given user
 
--timestamp:  (With -user or -skipuser). Only check for a user where his edit is
-             not older than the given timestamp. Timestamp must be writen in
-             MediaWiki timestamp format which is "%Y%m%d%H%M%S"
+-timestamp:  (With -onlyuser or -skipuser). Only check for a user where his
+             edit is not older than the given timestamp. Timestamp must be
+             writen in MediaWiki timestamp format which is "%Y%m%d%H%M%S".
              If this parameter is missed, all edits are checked but this is
              restricted to the last 100 edits.
 
@@ -102,8 +102,8 @@
 #
 # (C) Daniel Herding, 2004
 # (C) Rob W.W. Hooft, 2003-2005
-# (C) xqt, 2009-2015
-# (C) Pywikibot team, 2004-2015
+# (C) xqt, 2009-2016
+# (C) Pywikibot team, 2004-2016
 #
 # Distributed under the terms of the MIT license.
 #
@@ -301,8 +301,8 @@
             options['addedCat'] = arg[len('-addcat:'):]
         elif arg.startswith('-summary:'):
             options['summary'] = arg[len('-summary:'):]
-        elif arg.startswith('-user:'):
-            user = arg[len('-user:'):]
+        elif arg.startswith('-onlyuser:'):
+            user = arg[len('-onlyuser:'):]
         elif arg.startswith('-skipuser:'):
             user = arg[len('-skipuser:'):]
             skip = True

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb07f1e0d2ddc0e7cb780e21565cdaa04860c5d2
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