I want to remove a category from the intersection list of two other categories using the -intersect argument. (To remove duplicate pages in a supercategory.)
If I run the listpages list with -intersect everything is correct, there are only 12 pages.
pwb.py listpages -family:wikisource -lang:ru -cat:"ОУН-УПА" -cat:"Украина" -intersect
But when I run the same with the category script, the script starts emptying the entire global category "Украина". But it should have been only from those 12 pages.
pwb.py category -family:wikisource -lang:ru -cat:"ОУН-УПА" -cat:"Украина" -intersect remove -from:"Украина".
Note: The problem is more serious, because a bug was found with the -always parameter T318236, so the bot empties the global category without question.
-file argument don't works too
Also, the -file argument does not work to remove the categories by list from the file.
> pwb.py category -family:wikisource -lang:ru -file:/tmp/files.txt remove -from:"Украина" ERROR: Unknown parameter "-file:/tmp/files.txt". Use -help for further information. Retrieving 27 pages from wikisource:ru. Page [[Гимн Украины]] saved ...
It can be seen that instead of only 12 intersection pages from the list in the file, the global category is emptied.
-cat argument don't works too
The page generator doesn't seem to work there at all. Even with one category.
> pwb.py category -family:wikisource -lang:ru -cat:"ОУН-УПА" remove -from:"Украина" ERROR: Unknown parameter "-cat:ОУН-УПА". Use -help for further information. Retrieving 27 pages from wikisource:ru. Page [[Гимн Украины]] saved Page [[Грамота ко всему украинскому народу (Скоропадский)]] saved ...