From 99c34d95b08531c6828ef70143f7dfa297f0320b Mon Sep 17 00:00:00 2001 From: Simon Baatz Date: Sun, 22 Dec 2024 15:45:32 +0100 Subject: [PATCH] All caps pure-tokens in command usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ] ... ] ``` Signed-off-by: Simon Baatz --- templates/macros/command.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/macros/command.html b/templates/macros/command.html index c0e56d1b..af5bdbad 100644 --- a/templates/macros/command.html +++ b/templates/macros/command.html @@ -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 = "" -%}