jenkins-bot has submitted this change and it was merged.
Change subject: Consume global arg -dir in handle_args
......................................................................
Consume global arg -dir in handle_args
-dir: is processed in config2.py
If not consumed by handle_args, it is returned as a local arg,
and breaks generate-user-files which reports an error when
there are any local args given.
Change-Id: Ic549617ec6204ae342e792c4baff7ee44f725c17
---
M pywikibot/bot.py
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
John Vandenberg: Looks good to me, but someone else must approve
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 4088f06..de68ebd 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -729,6 +729,8 @@
for arg in args:
if do_help is not False and arg == '-help':
do_help = True
+ elif arg.startswith('-dir:'):
+ pass
elif arg.startswith('-family:'):
config.family = arg[len("-family:"):]
elif arg.startswith('-lang:'):
--
To view, visit https://gerrit.wikimedia.org/r/208502
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic549617ec6204ae342e792c4baff7ee44f725c17
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits