]> code.communitydata.science - mediawiki_dump_tools.git/commitdiff
Merge branch 'advanced_persistence' of code.communitydata.cc:/mediawiki_dump_tools...
authorNate E TeBlunthuis <nathante@mox2.hyak.local>
Fri, 24 Aug 2018 01:23:36 +0000 (18:23 -0700)
committergroceryheist <nathante@uw.edu>
Fri, 24 Aug 2018 01:25:51 +0000 (18:25 -0700)
wikiq

diff --git a/wikiq b/wikiq
index 47dd687014ab5c0ba391d563b33db7b000ab2a1c..a584390b4eedef9b606ba5dff7ac5b0d0fcccbb6 100755 (executable)
--- a/wikiq
+++ b/wikiq
@@ -373,11 +373,12 @@ parser.add_argument('-p', '--persistence', dest="persist", default=None, const='
 parser.add_argument('-u', '--url-encode', dest="urlencode", action="store_true",
                     help="Output url encoded text strings. This works around some data issues like newlines in editor names. In the future it may be used to output other text data.")
 
-parser.add_argument('-ns', '--namespace-filter', dest="namespace_filter", type=str, help="Comma-seperate list of namespaces numbers to include")
+parser.add_argument('-n', '--namespace-include', dest="namespace_filter", type=int, action='append',
+                    help="Id number of namspace to include.")
 
 
 args = parser.parse_args()
-
+print(args)
 # set persistence method
 
 if args.persist is None:
@@ -412,7 +413,6 @@ if len(args.dumpfiles) > 0:
                                 persist=persist,
                             urlencode=args.urlencode)
 
-
         wikiq.process()
 
         # close things 

Community Data Science Collective || Want to submit a patch?