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:'):
pywikibot-commits@lists.wikimedia.org