XZise added a comment.
No not really: `handleArgs` (or how it's now called `handle_args`) is already called (in [[ https://git.wikimedia.org/blob/pywikibot%2Fcore.git/29125188e56d34510f166dee... | line 46 ]]), but this request is about parsing the script specific parameters. And there are several ways to do that. Currently most scripts are doing it manually by iterating through the entries and then “doing it's stuff” but this is using optparse.
Now depending on how fast the argparse patch (https://gerrit.wikimedia.org/r/156089/) is going to be imported it would be better to just change the optparse into argparse. That is relatively easy and with that linked patch the adjustments are minimal.
TASK DETAIL https://phabricator.wikimedia.org/T70617
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: XZise Cc: pywikipedia-bugs, XZise, jayvdb, valhallasw