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()