Page MenuHomePhabricator

Move -except from add_text.py and -excepttext from replace.py to global page generator filters
Open, Needs TriagePublic

Description

In add_text.py there is -except param and in replace.py there is an -excepttext param, which are the exact opposite of -grep param in global page generator filters. Move it from these locations to global page generator params and perhaps rename it to -grep:not (similar to -ns:not).

Also note that there could be other similar parameters in other scripts, this option should replace them all (just maybe in multiple commits)

Event Timeline

Dvorapa created this task.Mar 26 2019, 1:46 PM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptMar 26 2019, 1:46 PM
Dvorapa renamed this task from Move -except from add_text.py to global page generator filters to Move -except from add_text.py and -excepttext from replace.py to global page generator filters.Mar 26 2019, 1:50 PM
Dvorapa updated the task description. (Show Details)
Dvorapa added a project: Pywikibot-replace.py.
Mahveotm added a subscriber: Xqt.Mar 30 2019, 8:23 AM

I'm willing to work on this. @Xqt , got any comments?

Dvorapa updated the task description. (Show Details)Mar 30 2019, 3:59 PM
Mpaa added a subscriber: Mpaa.Apr 1 2019, 9:16 PM

I would suggest -grep and -grepnot, similar to -titleregex and -titleregexnot.