"vscode:/vscode.git/clone" did not exist on "f085995a7b073f0f4a330f469d9f489160e5b7a1"
Unverified Commit a6760f15 authored by Karan Bansal's avatar Karan Bansal Committed by GitHub
Browse files

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


Signed-off-by: default avatarKaran Bansal <karanb192@gmail.com>
Signed-off-by: default avatarHarry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: default avatarHarry Mellor <19981378+hmellor@users.noreply.github.com>
parent 66e601ef
...@@ -162,7 +162,8 @@ class MarkdownFormatter(HelpFormatter): ...@@ -162,7 +162,8 @@ class MarkdownFormatter(HelpFormatter):
if action.help: if action.help:
self._markdown_output.append(f"{action.help}\n\n") 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 # Make empty string defaults visible
if default == "": if default == "":
default = '""' default = '""'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment