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 .

I made some changes in bot.py in function handlearg
Still needs lots of work but before I go on I want your opinion about this change.
Best
--
Amir