From 858a4cc900fd0da9549b0cf227041b0d6bb91f6f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 2 Nov 2020 21:50:53 -0800 Subject: commands: show usage on empty command --- fatcat_scholar/work_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/work_pipeline.py') diff --git a/fatcat_scholar/work_pipeline.py b/fatcat_scholar/work_pipeline.py index d4bd2fb..631bda8 100644 --- a/fatcat_scholar/work_pipeline.py +++ b/fatcat_scholar/work_pipeline.py @@ -417,7 +417,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) wp = WorkPipeline( -- cgit v1.2.3