Last modified: 2014-11-02 12:17:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70664, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68664 - replicate_wiki doesnt support help or other global command line options
replicate_wiki doesnt support help or other global command line options
Status: NEW
Product: Pywikibot
Classification: Unclassified
Other scripts (Other open bugs)
core-(2.0)
All All
: Unprioritized major
: ---
Assigned To: Pywikipedia bugs
: easy
Depends on:
Blocks: pwb_script_tests
  Show dependency treegraph
 
Reported: 2014-07-27 06:28 UTC by John Mark Vandenberg
Modified: 2014-11-02 12:17 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-07-27 06:28:46 UTC
replicate_wiki does not call handleArgs, and uses argparse without offering something like -help.
Comment 1 zhuyifei1999 2014-08-31 04:18:48 UTC
--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)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links