From 85fb384ab0c13dd3d25b81bff5a1da3a9bc55c2c Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 26 Jul 2019 16:39:49 +0200 Subject: [PATCH] path => compare --- tiramisu_cmdline_parser/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiramisu_cmdline_parser/api.py b/tiramisu_cmdline_parser/api.py index 04736cb..729b158 100644 --- a/tiramisu_cmdline_parser/api.py +++ b/tiramisu_cmdline_parser/api.py @@ -131,7 +131,7 @@ class TiramisuHelpFormatter(RawDescriptionHelpFormatter): compare = path.rsplit('.', 1)[1] else: compare = path - if name == path: + if name == compare: return '' return super().format_help()