fix: formatter.short_name_max_len for symlink
This commit is contained in:
parent
0e86a7ef43
commit
ce59a2544b
1 changed files with 2 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ class TiramisuHelpFormatter:
|
|||
# Remove empty OD
|
||||
if (
|
||||
self.formatter.remove_empty_od
|
||||
and len(self.items) == 1
|
||||
and 0 < len(self.items) <= self.formatter.short_name_max_len
|
||||
and self.items[0][0].__name__ == "_format_text"
|
||||
):
|
||||
return ""
|
||||
|
|
@ -326,6 +326,7 @@ class TiramisuCmdlineParser(ArgumentParser):
|
|||
"TiramisuHelpFormatter", (TiramisuHelpFormatter, formatter_class), {}
|
||||
)
|
||||
formatter_class.remove_empty_od = self.remove_empty_od
|
||||
formatter_class.short_name_max_len = self.short_name_max_len
|
||||
kwargs["formatter_class"] = formatter_class
|
||||
if not _forhelp and self.unrestraint:
|
||||
subconfig = self.config.unrestraint
|
||||
|
|
|
|||
Loading…
Reference in a new issue