[Doc] Improve serve parameter documentation with meaningful defaults (#33082)

Signed-off-by: Karan Bansal <karanb192@gmail.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Karan Bansal
2026-01-27 22:49:37 +05:30
committed by GitHub
parent 66e601ef79
commit a6760f1525

View File

@@ -162,7 +162,8 @@ class MarkdownFormatter(HelpFormatter):
if action.help:
self._markdown_output.append(f"{action.help}\n\n")
if (default := action.default) != SUPPRESS:
# None usually means the default is determined at runtime
if (default := action.default) != SUPPRESS and default is not None:
# Make empty string defaults visible
if default == "":
default = '""'