Permalink
Browse files

Adding command line options to download script

  • Loading branch information...
1 parent 5bbfa80 commit 808d918430ecf1f918382f321deaf355ce3df08a @practicalparticipation committed Feb 8, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 IATI/download.py
View
@@ -65,13 +65,11 @@ def check_file(pkg_name,dir,hash):
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser(description='Download data packages from the IATI Registry')
- parser.add_argument('--dir', type=str, nargs='?', default='~/iati/data/packages/',
- help='A full path to where packages should be stored')
parser.add_argument('--groups', dest='groups', type=str, nargs='*',
help='One or more groups to use')
args = parser.parse_args()
- print args
+
import sys
-
- check_dir(args.dir)
- run(args.dir,args.groups)
+ dir="~/iati/data/packages/"
+ check_dir(dir)
+ run(dir,args.groups)

0 comments on commit 808d918

Please sign in to comment.