Skip to content

Commit

Permalink
Use all caps pure-tokens in command "Usage:" (#184)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gmbnomis authored Jan 7, 2025
1 parent c867170 commit 7ffac1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/macros/command.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
{%- set end = "" -%}
{%- endif -%}
{%- set token = "" -%}
{%- if arguments.type and arguments.type != "pure-token" and arguments.token -%}
{%- if arguments.type and arguments.token -%}
{%- set token = arguments.token -%}
{%- endif -%}
{%- set name = "" -%}
{%- if arguments.type and arguments.type != "block" and arguments.type != "oneof" -%}
{%- if arguments.type and arguments.type != "block" and arguments.type != "oneof" and arguments.type != "pure-token" -%}
{%- set name = arguments.name -%}
{%- endif -%}
{%- set next = "" -%}
Expand Down

0 comments on commit 7ffac1a

Please sign in to comment.