https://bugzilla.wikimedia.org/show_bug.cgi?id=68664
Bug ID: 68664 Summary: replicate_wiki doesnt support help or other global command line options Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: major Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
replicate_wiki does not call handleArgs, and uses argparse without offering something like -help.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68664
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |69069
https://bugzilla.wikimedia.org/show_bug.cgi?id=68664
zhuyifei1999 zhuyifei1999@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zhuyifei1999@gmail.com
--- Comment #1 from zhuyifei1999 zhuyifei1999@gmail.com --- --help or -h would do:
$ python pwb.py scripts/replicate_wiki.py -h usage: replicate_wiki.py [-h] [-f FAMILY] [-r] [-o ORIGINAL_WIKI] [-ns NAMESPACE] [-dns DEST_NAMESPACE] destination [destination ...]
positional arguments: destination destination wiki(s)
optional arguments: -h, --help show this help message and exit -f FAMILY, --family FAMILY wiki family -r, --replace actually replace pages (without this option you will only get an overview page) -o ORIGINAL_WIKI, --original ORIGINAL_WIKI original wiki -ns NAMESPACE, --namespace NAMESPACE specify namespace -dns DEST_NAMESPACE, --dest-namespace DEST_NAMESPACE destination namespace (if different)
https://bugzilla.wikimedia.org/show_bug.cgi?id=68664
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Component|General |Other scripts
https://bugzilla.wikimedia.org/show_bug.cgi?id=68664
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |easy
pywikipedia-bugs@lists.wikimedia.org