From 549151b3b859652c73081bee2d5b91cfb79b39d0 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()