From 65d9bf7abe6def492bb14b9632d1a30f9980ff7f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 8 Nov 2020 12:26:08 -0800 Subject: ingest tool: consistency about ingest-type arg --- python/ingest_file.py | 4 ++-- 1 file 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', -- cgit v1.2.3