Unverified Commit 7b48de68 authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

Remove useless - from help.h on commands with no arguments (#8939)

As far as i can tell it shows up in redis-cli in both HELP, e.g.
`help client list`, and also in the command completion tips, but it is
unclear what it was needed for.
It exists since the very first commit that added this mechanism.
parent cf41c0b5
......@@ -49,17 +49,17 @@ struct commandHelp {
9,
"6.0.0" },
{ "ACL HELP",
"-",
"",
"Show helpful text about the different subcommands",
9,
"6.0.0" },
{ "ACL LIST",
"-",
"",
"List the current ACL rules in ACL config file format",
9,
"6.0.0" },
{ "ACL LOAD",
"-",
"",
"Reload the ACLs from the configured ACL file",
9,
"6.0.0" },
......@@ -69,7 +69,7 @@ struct commandHelp {
9,
"6.0.0" },
{ "ACL SAVE",
"-",
"",
"Save the current ACL rules in the configured ACL file",
9,
"6.0.0" },
......@@ -79,12 +79,12 @@ struct commandHelp {
9,
"6.0.0" },
{ "ACL USERS",
"-",
"",
"List the username of all the configured ACL rules",
9,
"6.0.0" },
{ "ACL WHOAMI",
"-",
"",
"Return the name of the user associated to the current connection",
9,
"6.0.0" },
......@@ -99,7 +99,7 @@ struct commandHelp {
8,
"1.0.0" },
{ "BGREWRITEAOF",
"-",
"",
"Asynchronously rewrite the append-only file",
9,
"1.0.0" },
......@@ -164,22 +164,22 @@ struct commandHelp {
8,
"6.0.0" },
{ "CLIENT GETNAME",
"-",
"",
"Get the current connection name",
8,
"2.6.9" },
{ "CLIENT GETREDIR",
"-",
"",
"Get tracking notifications redirection client ID if any",
8,
"6.0.0" },
{ "CLIENT ID",
"-",
"",
"Returns the client ID for the current connection",
8,
"5.0.0" },
{ "CLIENT INFO",
"-",
"",
"Returns information about the current client connection.",
8,
"6.2.0" },
......@@ -214,7 +214,7 @@ struct commandHelp {
8,
"6.0.0" },
{ "CLIENT TRACKINGINFO",
"-",
"",
"Return information about server assisted client side caching for the current connection",
8,
"6.2.0" },
......@@ -224,7 +224,7 @@ struct commandHelp {
8,
"5.0.0" },
{ "CLIENT UNPAUSE",
"-",
"",
"Resume processing of clients that were paused",
8,
"6.2.0" },
......@@ -234,7 +234,7 @@ struct commandHelp {
12,
"3.0.0" },
{ "CLUSTER BUMPEPOCH",
"-",
"",
"Advance the cluster config epoch",
12,
"3.0.0" },
......@@ -259,7 +259,7 @@ struct commandHelp {
12,
"3.0.0" },
{ "CLUSTER FLUSHSLOTS",
"-",
"",
"Delete a node's own slots information",
12,
"3.0.0" },
......@@ -274,7 +274,7 @@ struct commandHelp {
12,
"3.0.0" },
{ "CLUSTER INFO",
"-",
"",
"Provides info about Redis Cluster node state",
12,
"3.0.0" },
......@@ -289,12 +289,12 @@ struct commandHelp {
12,
"3.0.0" },
{ "CLUSTER MYID",
"-",
"",
"Return the node id",
12,
"3.0.0" },
{ "CLUSTER NODES",
"-",
"",
"Get Cluster config for the node",
12,
"3.0.0" },
......@@ -314,7 +314,7 @@ struct commandHelp {
12,
"3.0.0" },
{ "CLUSTER SAVECONFIG",
"-",
"",
"Forces the node to save cluster state on disk",
12,
"3.0.0" },
......@@ -334,22 +334,22 @@ struct commandHelp {
12,
"3.0.0" },
{ "CLUSTER SLOTS",
"-",
"",
"Get array of Cluster slot to node mappings",
12,
"3.0.0" },
{ "COMMAND",
"-",
"",
"Get array of Redis command details",
9,
"2.8.13" },
{ "COMMAND COUNT",
"-",
"",
"Get total number of Redis commands",
9,
"2.8.13" },
{ "COMMAND GETKEYS",
"-",
"",
"Extract keys given a full Redis command",
9,
"2.8.13" },
......@@ -364,12 +364,12 @@ struct commandHelp {
9,
"2.0.0" },
{ "CONFIG RESETSTAT",
"-",
"",
"Reset the stats returned by INFO",
9,
"2.0.0" },
{ "CONFIG REWRITE",
"-",
"",
"Rewrite the configuration file with the in memory configuration",
9,
"2.8.0" },
......@@ -384,7 +384,7 @@ struct commandHelp {
0,
"6.2.0" },
{ "DBSIZE",
"-",
"",
"Return the number of keys in the selected database",
9,
"1.0.0" },
......@@ -394,7 +394,7 @@ struct commandHelp {
9,
"1.0.0" },
{ "DEBUG SEGFAULT",
"-",
"",
"Make the server crash",
9,
"1.0.0" },
......@@ -414,7 +414,7 @@ struct commandHelp {
0,
"1.0.0" },
{ "DISCARD",
"-",
"",
"Discard all commands issued after MULTI",
7,
"2.0.0" },
......@@ -439,7 +439,7 @@ struct commandHelp {
10,
"2.6.0" },
{ "EXEC",
"-",
"",
"Execute all commands issued after MULTI",
7,
"1.2.0" },
......@@ -509,7 +509,7 @@ struct commandHelp {
13,
"6.2" },
{ "GEOSEARCHSTORE",
"destination source [FROMMEMBER member] [FROMLONLAT longitude latitude] [BYRADIUS radius m|km|ft|mi] [BYBOX width height m|km|ft|mi] [ASC|DESC] [COUNT count [ANY]] [WITHCOORD] [WITHDIST] [WITHHASH] [STOREDIST]",
"destination source [FROMMEMBER member] [FROMLONLAT longitude latitude] [BYRADIUS radius m|km|ft|mi] [BYBOX width height m|km|ft|mi] [ASC|DESC] [COUNT count [ANY]] [STOREDIST]",
"Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle, and store the result in another key.",
13,
"6.2" },
......@@ -654,12 +654,12 @@ struct commandHelp {
0,
"1.0.0" },
{ "LASTSAVE",
"-",
"",
"Get the UNIX time stamp of the last successful save to disk",
9,
"1.0.0" },
{ "LATENCY DOCTOR",
"-",
"",
"Return a human readable latency analysis report.",
9,
"2.8.13" },
......@@ -669,7 +669,7 @@ struct commandHelp {
9,
"2.8.13" },
{ "LATENCY HELP",
"-",
"",
"Show helpful text about the different subcommands.",
9,
"2.8.13" },
......@@ -679,7 +679,7 @@ struct commandHelp {
9,
"2.8.13" },
{ "LATENCY LATEST",
"-",
"",
"Return the latest latency samples for all events.",
9,
"2.8.13" },
......@@ -754,27 +754,27 @@ struct commandHelp {
2,
"1.0.0" },
{ "MEMORY DOCTOR",
"-",
"",
"Outputs memory problems report",
9,
"4.0.0" },
{ "MEMORY HELP",
"-",
"",
"Show helpful text about the different subcommands",
9,
"4.0.0" },
{ "MEMORY MALLOC-STATS",
"-",
"",
"Show allocator internal stats",
9,
"4.0.0" },
{ "MEMORY PURGE",
"-",
"",
"Ask the allocator to release memory",
9,
"4.0.0" },
{ "MEMORY STATS",
"-",
"",
"Show memory usage details",
9,
"4.0.0" },
......@@ -794,7 +794,7 @@ struct commandHelp {
0,
"2.6.0" },
{ "MODULE LIST",
"-",
"",
"List all modules loaded by the server",
9,
"4.0.0" },
......@@ -809,7 +809,7 @@ struct commandHelp {
9,
"4.0.0" },
{ "MONITOR",
"-",
"",
"Listen for all requests received by the server in real time",
9,
"1.0.0" },
......@@ -829,7 +829,7 @@ struct commandHelp {
1,
"1.0.1" },
{ "MULTI",
"-",
"",
"Mark the start of a transaction block",
7,
"1.2.0" },
......@@ -909,22 +909,22 @@ struct commandHelp {
6,
"2.0.0" },
{ "QUIT",
"-",
"",
"Close the connection",
8,
"1.0.0" },
{ "RANDOMKEY",
"-",
"",
"Return a random key from the keyspace",
0,
"1.0.0" },
{ "READONLY",
"-",
"",
"Enables read queries for a connection to a cluster replica node",
12,
"3.0.0" },
{ "READWRITE",
"-",
"",
"Disables read queries for a connection to a cluster replica node",
12,
"3.0.0" },
......@@ -944,7 +944,7 @@ struct commandHelp {
9,
"5.0.0" },
{ "RESET",
"-",
"",
"Reset the connection",
8,
"6.2" },
......@@ -954,7 +954,7 @@ struct commandHelp {
0,
"2.6.0" },
{ "ROLE",
"-",
"",
"Return the role of the instance in the context of replication",
9,
"2.8.12" },
......@@ -984,7 +984,7 @@ struct commandHelp {
3,
"1.0.0" },
{ "SAVE",
"-",
"",
"Synchronously save the dataset to disk",
9,
"1.0.0" },
......@@ -1014,7 +1014,7 @@ struct commandHelp {
10,
"2.6.0" },
{ "SCRIPT KILL",
"-",
"",
"Kill the script currently in execution.",
10,
"2.6.0" },
......@@ -1164,12 +1164,12 @@ struct commandHelp {
9,
"4.0.0" },
{ "SYNC",
"-",
"",
"Internal command used for replication",
9,
"1.0.0" },
{ "TIME",
"-",
"",
"Return the current server time",
9,
"2.6.0" },
......@@ -1199,7 +1199,7 @@ struct commandHelp {
6,
"2.0.0" },
{ "UNWATCH",
"-",
"",
"Forget about all watched keys",
7,
"2.2.0" },
......
......@@ -44,7 +44,7 @@ def argument arg
end
def arguments command
return "-" unless command["arguments"]
return "" unless command["arguments"]
command["arguments"].map do |arg|
argument arg
end.join " "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment