aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpython/grobid_tool.py2
-rwxr-xr-xpython/ingest_file.py2
-rwxr-xr-xpython/pdfextract_tool.py2
-rwxr-xr-xpython/pdftrio_tool.py2
-rw-r--r--python/sandcrawler/html_ingest.py2
-rwxr-xr-xpython/sandcrawler_worker.py2
6 files changed, 6 insertions, 6 deletions
diff --git a/python/grobid_tool.py b/python/grobid_tool.py
index fe507a0..2a1d8b5 100755
--- a/python/grobid_tool.py
+++ b/python/grobid_tool.py
@@ -133,7 +133,7 @@ def main():
args = parser.parse_args()
if not args.__dict__.get("func"):
- print("tell me what to do!")
+ parser.print_help(file=sys.stderr)
sys.exit(-1)
args.sink = None
diff --git a/python/ingest_file.py b/python/ingest_file.py
index f6f694e..ad78f50 100755
--- a/python/ingest_file.py
+++ b/python/ingest_file.py
@@ -78,7 +78,7 @@ def main():
args = parser.parse_args()
if not args.__dict__.get("func"):
- print("tell me what to do!", file=sys.stderr)
+ parser.print_help(file=sys.stderr)
sys.exit(-1)
args.func(args)
diff --git a/python/pdfextract_tool.py b/python/pdfextract_tool.py
index 0d33ec9..10a0f48 100755
--- a/python/pdfextract_tool.py
+++ b/python/pdfextract_tool.py
@@ -115,7 +115,7 @@ def main():
args = parser.parse_args()
if not args.__dict__.get("func"):
- print("tell me what to do!", file=sys.stderr)
+ parser.print_help(file=sys.stderr)
sys.exit(-1)
args.text_sink = None
diff --git a/python/pdftrio_tool.py b/python/pdftrio_tool.py
index ec92afe..5cffa8c 100755
--- a/python/pdftrio_tool.py
+++ b/python/pdftrio_tool.py
@@ -105,7 +105,7 @@ def main():
args = parser.parse_args()
if not args.__dict__.get("func"):
- print("tell me what to do!")
+ parser.print_help(file=sys.stderr)
sys.exit(-1)
args.sink = None
diff --git a/python/sandcrawler/html_ingest.py b/python/sandcrawler/html_ingest.py
index 0e1439c..10662a1 100644
--- a/python/sandcrawler/html_ingest.py
+++ b/python/sandcrawler/html_ingest.py
@@ -179,7 +179,7 @@ def main() -> None:
args = parser.parse_args()
if not args.__dict__.get("func"):
- print("tell me what to do! (try --help)")
+ parser.print_help(file=sys.stderr)
sys.exit(-1)
if args.func == "run_single":
diff --git a/python/sandcrawler_worker.py b/python/sandcrawler_worker.py
index 77c0704..a653771 100755
--- a/python/sandcrawler_worker.py
+++ b/python/sandcrawler_worker.py
@@ -304,7 +304,7 @@ def main():
args = parser.parse_args()
if not args.__dict__.get("func"):
- print("tell me what to do!")
+ parser.print_help(file=sys.stderr)
sys.exit(-1)
args.func(args)