From b427661237f7b00155cbe82caa8644e7b22c5f4f Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sun, 9 Aug 2020 14:39:21 +0200 Subject: Solve no-command issue -> show usage correctly --- fracture/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fracture/__main__.py b/fracture/__main__.py index e7c3381..b385116 100644 --- a/fracture/__main__.py +++ b/fracture/__main__.py @@ -158,7 +158,7 @@ if __name__ == "__main__": load_config() parser = ap(prog="fracture") - parser.set_defaults(func=lambda: parser.print_help()) + parser.set_defaults(func=lambda _: parser.print_help()) subparsers = parser.add_subparsers(title= "Subcommands", help="sub-command help") -- cgit v1.2.3