Hello,
pywikibot doesn't use standard arguments and argument parsing
For example a standard input should be like this:
python pwb.py replace "something" "something else" --page="python" --always
or
python pwb.py replace "something" "something else" --p "python" -a

And in back-end, pywikibot uses sysargv for parsing args but it's
discouraged and it's better to use argparse
<https://docs.python.org/2/library/argparse.html> .

I made some changes in bot.py in function handlearg
https://gerrit.wikimedia.org/r/156089

Still needs lots of work but before I go on I want your opinion about this
change.
Best
-- 
Amir
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to