Skip to content

Commit

Permalink
Info about option value type in generated docs (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pjob authored Oct 10, 2023
1 parent 6e87428 commit fb5442f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snowcli/app/dev/docs/templates/usage.rst.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Arguments

{%- if arguments %}
{% for param in arguments %}
:samp:`{% for p in param.opts %}{{ p }}{{ ", " if not loop.last }}{% endfor %} {{ '{' }}{{ param.name }}{{ '}' }}`
:samp:`{% for p in param.opts %}{{ p }}{{ ", " if not loop.last }}{% endfor %} {{ '{' }}{{ param.make_metavar() }}{{ '}' }}`
{% if param.help %}{{ " " + param.help | replace("`", "``") }}{% if param.help[-1] != '.' %}.{% endif %}{% else %} TBD{% endif %}
{% endfor %}
{% else %}
Expand All @@ -32,7 +32,7 @@ Options

{%- if options %}
{% for param in options if not param.hidden %}
:samp:`{% for p in param.opts %}{{ p }}{{ ", " if not loop.last }}{% endfor %}{% if not param.is_flag %} {{ '{' }}{{ param.name }}{{ '}' }}{% endif %}`
:samp:`{% for p in param.opts %}{{ p }}{{ ", " if not loop.last }}{% endfor %}{% if not param.is_flag %} {{ '{' }}{{ param.make_metavar() }}{{ '}' }}{% endif %}`
{% if param.help %}{{ " " + param.help | replace("`", "``") }}{% if param.help[-1] != '.' %}.{% endif %}{% else %} TBD{% endif %}
{% endfor %}
{% else %}
Expand Down

0 comments on commit fb5442f

Please sign in to comment.