There is an ongoing development project to add argparse support to pywikibot core. I'm adding a Phab task so it can be managed here.
Description
Details
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| [WIP] [FEAT] Argparse support | Ladsgroup | pywikibot/core | master | +1 K -1 K | |
| [bugfix] bugfixes and improvements for checkimages | Xqt | pywikibot/core | master | +131 -150 |
Event Timeline
Change 156089 had a related patch set uploaded (by XZise):
[WIP] [FEAT] Argparse support
The blocking '<x> argument conflict' tasks are all the overlaps/conflicts that I could detect.
The -user conflicts are an example where the library arg parsing should consume that argument and not give it to scripts, and ideally somehow detect it is being used. This could be done by handle_args returning a special string class which emits a deprecation warning whenever it is compared with a global argument.
The others are conflicts with pagegen arguments, and do not necessarily block the arg parse task, as some support for argument conflicts must be supported anyway, but solving some of them may mean we can deprecate support of some argument names being re-implemented in scripts.
Change 281131 had a related patch set uploaded (by Xqt):
[bugfix] bugfixes and improvements for checkimages
Change 281673 had a related patch set uploaded (by Xqt):
[bugfix] bugfixes and improvements for checkimages
Change 156089 abandoned by Ladsgroup:
[WIP] [FEAT] Argparse support
Reason:
This needs to be split into lots and lots of patches (using backward compatibility)