diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-11-08 12:26:08 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-11-08 12:26:08 -0800 |
commit | 65d9bf7abe6def492bb14b9632d1a30f9980ff7f (patch) | |
tree | c083007f25e6ab1b6a063aff923e4efe5f601be1 /python | |
parent | 19962108e0fd23fe6af24f170da8c47149e531dc (diff) | |
download | sandcrawler-65d9bf7abe6def492bb14b9632d1a30f9980ff7f.tar.gz sandcrawler-65d9bf7abe6def492bb14b9632d1a30f9980ff7f.zip |
ingest tool: consistency about ingest-type arg
Diffstat (limited to 'python')
-rwxr-xr-x | python/ingest_file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/ingest_file.py b/python/ingest_file.py index ad78f50..73e6a13 100755 --- a/python/ingest_file.py +++ b/python/ingest_file.py @@ -10,7 +10,7 @@ from sandcrawler.ingest import IngestFileRequestHandler, IngestFileWorker def run_single_ingest(args): request = dict( - ingest_type=args.type, + ingest_type=args.ingest_type, base_url=args.url, ext_ids=dict(doi=args.doi), fatcat=dict(release_ident=args.release_id), @@ -56,7 +56,7 @@ def main(): sub_single.add_argument('--no-spn2', action='store_true', help="don't use live web (SPNv2)") - sub_single.add_argument('--type', + sub_single.add_argument('--ingest-type', default="pdf", help="type of ingest (pdf, html, etc)") sub_single.add_argument('url', |