GSoC/GCI Archive
Google Code-in 2014 Wikimedia Foundation

Pywikibot script replicate_wiki global args support

completed by: murfel

mentors: Fabian, John Vandenberg

Pywikibot is a Python-based framework to write bots for MediaWiki. See for more information. Patches can be submitted via Gerrit (you need a account). More documentation on Gerrit can be found at After you have successfully claimed this task in Google Melange please do use the task in Phabricator for communication instead of Google Melange. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at and the #pywikibot IRC channel (see

The Pywikibot script named "" uses argparse but does not use the Pywikibot function handle_args to process the global arguments that all Pywikibot scripts should recognise.  Global argument parsing needs to be added to the "" script, and the 'script_tests' updated.  Another script (named "") already uses optparse/argparse and handle_args.  All other scripts also use handle_args in a consistent manner except for a very old script  See also:

Students are required to read Wikimedia's general instructions at first.