From 271f110e5ad4091e8d683b4365bc565ae0466916 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 4 Oct 2021 16:12:59 -0700 Subject: ingest tool: always require ingest type as part of 'single' command --- python/ingest_tool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/ingest_tool.py b/python/ingest_tool.py index 2a7a1a2..45e1812 100755 --- a/python/ingest_tool.py +++ b/python/ingest_tool.py @@ -62,6 +62,9 @@ def main(): sub_single= subparsers.add_parser('single', help="ingests a single base URL") sub_single.set_defaults(func=run_single_ingest) + sub_single.add_argument('ingest_type', + default="pdf", + help="type of ingest (pdf, html, etc)") sub_single.add_argument('--release-id', help="(optional) existing release ident to match to") sub_single.add_argument('--doi', @@ -72,9 +75,6 @@ def main(): sub_single.add_argument('--no-spn2', action='store_true', help="don't use live web (SPNv2)") - sub_single.add_argument('--ingest-type', - default="pdf", - help="type of ingest (pdf, html, etc)") sub_single.add_argument('--html-quick-mode', action='store_true', help="don't fetch individual sub-resources, just use CDX") -- cgit v1.2.3