1
0
forked from drath/libratbag

ratbagctl: don't reuse a variable for different types

This commit is contained in:
Yaroslav Chvanov
2023-03-01 22:46:10 +03:00
parent 6c5a15172b
commit 211551ff5b

View File

@@ -1429,9 +1429,9 @@ class RatbagParserSwitch(RatbagParser):
def _print_help(self, prefix: str) -> None:
if self.help and self.group is not None:
string = self.help.split("\n")
string = "\n ".join(string)
print(" ", string, "\n")
help_lines = self.help.split("\n")
help_indented = "\n ".join(help_lines)
print(" ", help_indented, "\n")
for e in self.switch:
e.print_help(None, f"{prefix}{self.name} ")
if self.N_access is not None: