aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-11-08 12:26:08 -0800
committerBryan Newbold <bnewbold@archive.org>2020-11-08 12:26:08 -0800
commit65d9bf7abe6def492bb14b9632d1a30f9980ff7f (patch)
treec083007f25e6ab1b6a063aff923e4efe5f601be1
parent19962108e0fd23fe6af24f170da8c47149e531dc (diff)
downloadsandcrawler-65d9bf7abe6def492bb14b9632d1a30f9980ff7f.tar.gz
sandcrawler-65d9bf7abe6def492bb14b9632d1a30f9980ff7f.zip
ingest tool: consistency about ingest-type arg
-rwxr-xr-xpython/ingest_file.py4
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',