Page MenuHomePhabricator

touch.py ignores valid options with purge
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

python3 /shared/pywikibot/core/scripts/touch.py -lang:en -family:wikipedia -purge -forcelinkupdate -cat:'Pages using duplicate arguments in template calls'

Actual Results:

WARNING: forcelinkupdate is not a valid option. It was ignored.
Retrieving 50 pages from wikipedia:en.
WARNING: /shared/pywikipedia/core/pywikibot/bot.py:1154: FutureWarning: pywikibot.bot.OptionHandler.options is deprecated for 1 month and 17 days; use Optionhandler.opt.option attribute or Optionhandler.opt[option] item instead.
  attr = super().__getattribute__(name)

Expected Results:

The script does not ignore valid options


version.py
Pywikibot: [https] r-pywikibot-core.git (67dd6cc, g1, 2020/11/19, 22:20:58, master)
Release version: 5.2.0.dev0
requests version: 2.21.0
  cacerts: /etc/ssl/certs/ca-certificates.crt
    certificate test: ok
Python: 3.5.3 (default, Nov 18 2020, 21:09:16)
[GCC 6.3.0 20170516]
Toolforge hostname: tools-sgebastion-08

Event Timeline

Probably related to {c2a4f9efa700} / {ae216e179041}

Xqt triaged this task as Medium priority.Nov 22 2020, 10:51 AM

Change 642809 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Fix available_options and purge options in touch.py

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

Change 642809 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Fix available_options and purge options in touch.py

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

JJMC89 removed a project: Patch-For-Review.