Fix option documentation.

This commit is contained in:
Sergey Vartanov 2021-07-25 01:15:17 +03:00
parent d94f44692e
commit 940df876a1
2 changed files with 14 additions and 14 deletions

View file

@ -50,12 +50,12 @@ class ArgumentParser(argparse.ArgumentParser):
row = [[x for y in array for x in y][:-1]]
if "help" in option:
help_value: str = option["help"]
if "default" in option and option["default"] != "==SUPPRESS==":
help_value += (
f", default value: \\tt {{{option['default']}}}"
)
row.append([help_value])
help_value: List = [option["help"]]
if "default" in option and option["default"] and option["default"] != "==SUPPRESS==":
help_value += [
f", default value: ", Tag("tt", [str(option['default'])])
]
row.append(help_value)
else:
row.append([])
table.append(row)