Page MenuHomePhabricator

argparse support for global & pagegen arguments
Open, LowestPublic

Description

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.

https://gerrit.wikimedia.org/r/#/c/156089/

Event Timeline

jayvdb assigned this task to XZise.
jayvdb raised the priority of this task from to Medium.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot.
jayvdb changed Security from none to None.
jayvdb updated the task description. (Show Details)
jayvdb subscribed.

Change 156089 had a related patch set uploaded (by XZise):
[WIP] [FEAT] Argparse support

https://gerrit.wikimedia.org/r/156089

Patch-For-Review

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

https://gerrit.wikimedia.org/r/281131

Change 281673 had a related patch set uploaded (by Xqt):
[bugfix] bugfixes and improvements for checkimages

https://gerrit.wikimedia.org/r/281673

Change 156089 abandoned by Ladsgroup:
[WIP] [FEAT] Argparse support

Reason:
This needs to be split into lots and lots of patches (using backward compatibility)

https://gerrit.wikimedia.org/r/156089

Xqt lowered the priority of this task from Medium to Lowest.Dec 18 2018, 9:38 AM
XZise removed XZise as the assignee of this task.Nov 5 2020, 6:25 PM