mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-03 16:49:10 +02:00
Fix option documentation.
This commit is contained in:
parent
d94f44692e
commit
940df876a1
2 changed files with 14 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue