Page MenuHomePhabricator

pagegenerators.GeneratorFactory() uses wrong site if handle_arg used before pywikibot.handle_args()
Open, LowPublic

Description

The following will use a new default Site only instead of the one specified on the command line

genFactory = pagegenerators.GeneratorFactory()
genFactory.handle_arg('-file:' + filename):
...
pywikibot.handle_args()

Event Timeline

Xqt renamed this task from pagegenerators.GeneratorFactory() uses wrong site if handleArg used before pywikibot.handleArgs() to pagegenerators.GeneratorFactory() uses wrong site if handleArg used before pywikibot.handle_args().Nov 13 2016, 1:06 PM
Xqt updated the task description. (Show Details)
Xqt removed jayvdb as the assignee of this task.Feb 19 2020, 6:57 AM
Xqt renamed this task from pagegenerators.GeneratorFactory() uses wrong site if handleArg used before pywikibot.handle_args() to pagegenerators.GeneratorFactory() uses wrong site if handle_arg used before pywikibot.handle_args().Mar 1 2021, 9:39 AM
Xqt updated the task description. (Show Details)