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/issue_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/issue_db.py') diff --git a/fatcat_scholar/issue_db.py b/fatcat_scholar/issue_db.py index 9839a60..bf79b09 100644 --- a/fatcat_scholar/issue_db.py +++ b/fatcat_scholar/issue_db.py @@ -419,7 +419,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) idb = IssueDB(args.db_file) -- cgit v1.2.3