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 | Repo | Branch | Lines +/- | |
---|---|---|---|---|
[WIP] [FEAT] Argparse support | pywikibot/core | master | +1 K -1 K | |
[bugfix] bugfixes and improvements for checkimages | pywikibot/core | master | +131 -150 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T76429 argparse support for global & pagegen arguments | |||
Declined | None | T212046 --help option should works too | |||
Open | None | T182523 option conflict (tracking) | |||
Resolved | Ryan10145 | T182522 imagecopy does not support its -cc option | |||
Resolved | Kizule | T215102 lonelypages.py options conflict | |||
Open | None | T100522 -cat argument conflict | |||
Resolved | Xqt | T87635 -user argument conflict | |||
Open | None | T100523 -file argument conflict | |||
Open | None | T100524 -namespace argument conflict | |||
Open | None | T100525 -interwiki argument conflict | |||
Open | None | T100610 -limit argument conflict | |||
Resolved | None | T148354 -total option should be renamed to -limit | |||
Open | None | T100612 -links argument conflict with casechecker.py | |||
Open | None | T100613 -recentchanges and -usercontribs argument conflict | |||
Open | None | T100628 -start argument conflict | |||
Resolved | Xqt | T100629 -step argument conflict in redirect.py | |||
Open | None | T100630 -random argument conflict in welcome.py | |||
Open | None | T100643 -page argument conflict | |||
Open | None | T100618 checkimages.py pagegen support |
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)