From fee79090aeff1a460eeae83a2145cc92344d26d7 Mon Sep 17 00:00:00 2001 From: Adam Stus Date: Tue, 19 Nov 2024 14:31:34 +0100 Subject: [PATCH] Remove empty defaults from docs --- src/snowflake/cli/_app/dev/docs/templates/usage.rst.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snowflake/cli/_app/dev/docs/templates/usage.rst.jinja2 b/src/snowflake/cli/_app/dev/docs/templates/usage.rst.jinja2 index 199e8a0127..4f46f15aae 100644 --- a/src/snowflake/cli/_app/dev/docs/templates/usage.rst.jinja2 +++ b/src/snowflake/cli/_app/dev/docs/templates/usage.rst.jinja2 @@ -48,7 +48,7 @@ Options {%- if param.type.name != "choice" %}{{ ' {' }}{% else %} {% endif %}{{ param.make_metavar() }}{% if param.type.name != "choice" %}{{ '}' }} {%- endif %} {%- endif %}` -{% if param.help %}{{ " " + param.help | replace("\n", " ") }}{% if param.help[-1] != '.' %}.{% endif %}{% if param.default is not none %} Default: {{ param.default }}.{% endif %}{% else %} TBD{% endif %} +{% if param.help %}{{ " " + param.help | replace("\n", " ") }}{% if param.help[-1] != '.' %}.{% endif %}{% if param.default is not none and param.default != "" %} Default: {{ param.default }}.{% endif %}{% else %} TBD{% endif %} {% endfor -%} {% else %}