Hi, I wrote a module which handles Flagged Revisions in huwiki. https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:BinBot/huwiki/flaggedrevs.py It has a function called cosmeticable(page) to tell if a page is eligible for cosmetic changes according to huwiki rules.
It also has a CosmeticableFilterPageGenerator which yields only cosmeticable pages. But it may not have a command-line argument as it is not in the framework.
Now, what is the way to tell Pywikibot that cosmetic changes should be done only on pages where the function returns True or which are from this pagegenerator? I don't want to modify the core system on my device, because it will be disrupted when refreshing and is not distributable to other users.
In eneral, is there a way to use own _global_ command-line arguments?