Skip to content

Commit 7ffac1a

Browse files
authored
Use all caps pure-tokens in command "Usage:" (#184)
In the command page's "Usage:", the lower case `name` was used in case of a `pure-token`. However, the all caps `token` should be used instead. For MIGRATE, this makes an even bigger difference (see `empty-string`): Before: ``` Usage: MIGRATE host port 〈 key | empty-string 〉 destination-db timeout [ copy ] [ replace ] [ AUTH auth | AUTH2 username password ] [ KEYS keys ] [ [ KEYS keys ] ... ] ``` Now: ``` Usage: MIGRATE host port 〈 key | "" 〉 destination-db timeout [ COPY ] [ REPLACE ] [ AUTH auth | AUTH2 username password ] [ KEYS keys ] [ [ KEYS keys ] ... ] ``` This addresses a part of #116 By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License. Signed-off-by: Simon Baatz <[email protected]>
1 parent c867170 commit 7ffac1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/macros/command.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
{%- set end = "" -%}
1212
{%- endif -%}
1313
{%- set token = "" -%}
14-
{%- if arguments.type and arguments.type != "pure-token" and arguments.token -%}
14+
{%- if arguments.type and arguments.token -%}
1515
{%- set token = arguments.token -%}
1616
{%- endif -%}
1717
{%- set name = "" -%}
18-
{%- if arguments.type and arguments.type != "block" and arguments.type != "oneof" -%}
18+
{%- if arguments.type and arguments.type != "block" and arguments.type != "oneof" and arguments.type != "pure-token" -%}
1919
{%- set name = arguments.name -%}
2020
{%- endif -%}
2121
{%- set next = "" -%}

0 commit comments

Comments
 (0)