From 8e9106885bc736648c0bf0151a29d4bea9b72650 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 29 Oct 2020 15:22:47 -0700 Subject: better default CLI output (show usage) --- python/sandcrawler/html_ingest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/sandcrawler/html_ingest.py') 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": -- cgit v1.2.3