mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
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.
This commit is contained in:
parent
cf41c0b5ff
commit
7b48de68ce
106
src/help.h
106
src/help.h
@ -49,17 +49,17 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
{ "ACL HELP",
|
{ "ACL HELP",
|
||||||
"-",
|
"",
|
||||||
"Show helpful text about the different subcommands",
|
"Show helpful text about the different subcommands",
|
||||||
9,
|
9,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
{ "ACL LIST",
|
{ "ACL LIST",
|
||||||
"-",
|
"",
|
||||||
"List the current ACL rules in ACL config file format",
|
"List the current ACL rules in ACL config file format",
|
||||||
9,
|
9,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
{ "ACL LOAD",
|
{ "ACL LOAD",
|
||||||
"-",
|
"",
|
||||||
"Reload the ACLs from the configured ACL file",
|
"Reload the ACLs from the configured ACL file",
|
||||||
9,
|
9,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
@ -69,7 +69,7 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
{ "ACL SAVE",
|
{ "ACL SAVE",
|
||||||
"-",
|
"",
|
||||||
"Save the current ACL rules in the configured ACL file",
|
"Save the current ACL rules in the configured ACL file",
|
||||||
9,
|
9,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
@ -79,12 +79,12 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
{ "ACL USERS",
|
{ "ACL USERS",
|
||||||
"-",
|
"",
|
||||||
"List the username of all the configured ACL rules",
|
"List the username of all the configured ACL rules",
|
||||||
9,
|
9,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
{ "ACL WHOAMI",
|
{ "ACL WHOAMI",
|
||||||
"-",
|
"",
|
||||||
"Return the name of the user associated to the current connection",
|
"Return the name of the user associated to the current connection",
|
||||||
9,
|
9,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
@ -99,7 +99,7 @@ struct commandHelp {
|
|||||||
8,
|
8,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "BGREWRITEAOF",
|
{ "BGREWRITEAOF",
|
||||||
"-",
|
"",
|
||||||
"Asynchronously rewrite the append-only file",
|
"Asynchronously rewrite the append-only file",
|
||||||
9,
|
9,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
@ -164,22 +164,22 @@ struct commandHelp {
|
|||||||
8,
|
8,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
{ "CLIENT GETNAME",
|
{ "CLIENT GETNAME",
|
||||||
"-",
|
"",
|
||||||
"Get the current connection name",
|
"Get the current connection name",
|
||||||
8,
|
8,
|
||||||
"2.6.9" },
|
"2.6.9" },
|
||||||
{ "CLIENT GETREDIR",
|
{ "CLIENT GETREDIR",
|
||||||
"-",
|
"",
|
||||||
"Get tracking notifications redirection client ID if any",
|
"Get tracking notifications redirection client ID if any",
|
||||||
8,
|
8,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
{ "CLIENT ID",
|
{ "CLIENT ID",
|
||||||
"-",
|
"",
|
||||||
"Returns the client ID for the current connection",
|
"Returns the client ID for the current connection",
|
||||||
8,
|
8,
|
||||||
"5.0.0" },
|
"5.0.0" },
|
||||||
{ "CLIENT INFO",
|
{ "CLIENT INFO",
|
||||||
"-",
|
"",
|
||||||
"Returns information about the current client connection.",
|
"Returns information about the current client connection.",
|
||||||
8,
|
8,
|
||||||
"6.2.0" },
|
"6.2.0" },
|
||||||
@ -214,7 +214,7 @@ struct commandHelp {
|
|||||||
8,
|
8,
|
||||||
"6.0.0" },
|
"6.0.0" },
|
||||||
{ "CLIENT TRACKINGINFO",
|
{ "CLIENT TRACKINGINFO",
|
||||||
"-",
|
"",
|
||||||
"Return information about server assisted client side caching for the current connection",
|
"Return information about server assisted client side caching for the current connection",
|
||||||
8,
|
8,
|
||||||
"6.2.0" },
|
"6.2.0" },
|
||||||
@ -224,7 +224,7 @@ struct commandHelp {
|
|||||||
8,
|
8,
|
||||||
"5.0.0" },
|
"5.0.0" },
|
||||||
{ "CLIENT UNPAUSE",
|
{ "CLIENT UNPAUSE",
|
||||||
"-",
|
"",
|
||||||
"Resume processing of clients that were paused",
|
"Resume processing of clients that were paused",
|
||||||
8,
|
8,
|
||||||
"6.2.0" },
|
"6.2.0" },
|
||||||
@ -234,7 +234,7 @@ struct commandHelp {
|
|||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
{ "CLUSTER BUMPEPOCH",
|
{ "CLUSTER BUMPEPOCH",
|
||||||
"-",
|
"",
|
||||||
"Advance the cluster config epoch",
|
"Advance the cluster config epoch",
|
||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
@ -259,7 +259,7 @@ struct commandHelp {
|
|||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
{ "CLUSTER FLUSHSLOTS",
|
{ "CLUSTER FLUSHSLOTS",
|
||||||
"-",
|
"",
|
||||||
"Delete a node's own slots information",
|
"Delete a node's own slots information",
|
||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
@ -274,7 +274,7 @@ struct commandHelp {
|
|||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
{ "CLUSTER INFO",
|
{ "CLUSTER INFO",
|
||||||
"-",
|
"",
|
||||||
"Provides info about Redis Cluster node state",
|
"Provides info about Redis Cluster node state",
|
||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
@ -289,12 +289,12 @@ struct commandHelp {
|
|||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
{ "CLUSTER MYID",
|
{ "CLUSTER MYID",
|
||||||
"-",
|
"",
|
||||||
"Return the node id",
|
"Return the node id",
|
||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
{ "CLUSTER NODES",
|
{ "CLUSTER NODES",
|
||||||
"-",
|
"",
|
||||||
"Get Cluster config for the node",
|
"Get Cluster config for the node",
|
||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
@ -314,7 +314,7 @@ struct commandHelp {
|
|||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
{ "CLUSTER SAVECONFIG",
|
{ "CLUSTER SAVECONFIG",
|
||||||
"-",
|
"",
|
||||||
"Forces the node to save cluster state on disk",
|
"Forces the node to save cluster state on disk",
|
||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
@ -334,22 +334,22 @@ struct commandHelp {
|
|||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
{ "CLUSTER SLOTS",
|
{ "CLUSTER SLOTS",
|
||||||
"-",
|
"",
|
||||||
"Get array of Cluster slot to node mappings",
|
"Get array of Cluster slot to node mappings",
|
||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
{ "COMMAND",
|
{ "COMMAND",
|
||||||
"-",
|
"",
|
||||||
"Get array of Redis command details",
|
"Get array of Redis command details",
|
||||||
9,
|
9,
|
||||||
"2.8.13" },
|
"2.8.13" },
|
||||||
{ "COMMAND COUNT",
|
{ "COMMAND COUNT",
|
||||||
"-",
|
"",
|
||||||
"Get total number of Redis commands",
|
"Get total number of Redis commands",
|
||||||
9,
|
9,
|
||||||
"2.8.13" },
|
"2.8.13" },
|
||||||
{ "COMMAND GETKEYS",
|
{ "COMMAND GETKEYS",
|
||||||
"-",
|
"",
|
||||||
"Extract keys given a full Redis command",
|
"Extract keys given a full Redis command",
|
||||||
9,
|
9,
|
||||||
"2.8.13" },
|
"2.8.13" },
|
||||||
@ -364,12 +364,12 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"2.0.0" },
|
"2.0.0" },
|
||||||
{ "CONFIG RESETSTAT",
|
{ "CONFIG RESETSTAT",
|
||||||
"-",
|
"",
|
||||||
"Reset the stats returned by INFO",
|
"Reset the stats returned by INFO",
|
||||||
9,
|
9,
|
||||||
"2.0.0" },
|
"2.0.0" },
|
||||||
{ "CONFIG REWRITE",
|
{ "CONFIG REWRITE",
|
||||||
"-",
|
"",
|
||||||
"Rewrite the configuration file with the in memory configuration",
|
"Rewrite the configuration file with the in memory configuration",
|
||||||
9,
|
9,
|
||||||
"2.8.0" },
|
"2.8.0" },
|
||||||
@ -384,7 +384,7 @@ struct commandHelp {
|
|||||||
0,
|
0,
|
||||||
"6.2.0" },
|
"6.2.0" },
|
||||||
{ "DBSIZE",
|
{ "DBSIZE",
|
||||||
"-",
|
"",
|
||||||
"Return the number of keys in the selected database",
|
"Return the number of keys in the selected database",
|
||||||
9,
|
9,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
@ -394,7 +394,7 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "DEBUG SEGFAULT",
|
{ "DEBUG SEGFAULT",
|
||||||
"-",
|
"",
|
||||||
"Make the server crash",
|
"Make the server crash",
|
||||||
9,
|
9,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
@ -414,7 +414,7 @@ struct commandHelp {
|
|||||||
0,
|
0,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "DISCARD",
|
{ "DISCARD",
|
||||||
"-",
|
"",
|
||||||
"Discard all commands issued after MULTI",
|
"Discard all commands issued after MULTI",
|
||||||
7,
|
7,
|
||||||
"2.0.0" },
|
"2.0.0" },
|
||||||
@ -439,7 +439,7 @@ struct commandHelp {
|
|||||||
10,
|
10,
|
||||||
"2.6.0" },
|
"2.6.0" },
|
||||||
{ "EXEC",
|
{ "EXEC",
|
||||||
"-",
|
"",
|
||||||
"Execute all commands issued after MULTI",
|
"Execute all commands issued after MULTI",
|
||||||
7,
|
7,
|
||||||
"1.2.0" },
|
"1.2.0" },
|
||||||
@ -509,7 +509,7 @@ struct commandHelp {
|
|||||||
13,
|
13,
|
||||||
"6.2" },
|
"6.2" },
|
||||||
{ "GEOSEARCHSTORE",
|
{ "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.",
|
"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,
|
13,
|
||||||
"6.2" },
|
"6.2" },
|
||||||
@ -654,12 +654,12 @@ struct commandHelp {
|
|||||||
0,
|
0,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "LASTSAVE",
|
{ "LASTSAVE",
|
||||||
"-",
|
"",
|
||||||
"Get the UNIX time stamp of the last successful save to disk",
|
"Get the UNIX time stamp of the last successful save to disk",
|
||||||
9,
|
9,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "LATENCY DOCTOR",
|
{ "LATENCY DOCTOR",
|
||||||
"-",
|
"",
|
||||||
"Return a human readable latency analysis report.",
|
"Return a human readable latency analysis report.",
|
||||||
9,
|
9,
|
||||||
"2.8.13" },
|
"2.8.13" },
|
||||||
@ -669,7 +669,7 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"2.8.13" },
|
"2.8.13" },
|
||||||
{ "LATENCY HELP",
|
{ "LATENCY HELP",
|
||||||
"-",
|
"",
|
||||||
"Show helpful text about the different subcommands.",
|
"Show helpful text about the different subcommands.",
|
||||||
9,
|
9,
|
||||||
"2.8.13" },
|
"2.8.13" },
|
||||||
@ -679,7 +679,7 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"2.8.13" },
|
"2.8.13" },
|
||||||
{ "LATENCY LATEST",
|
{ "LATENCY LATEST",
|
||||||
"-",
|
"",
|
||||||
"Return the latest latency samples for all events.",
|
"Return the latest latency samples for all events.",
|
||||||
9,
|
9,
|
||||||
"2.8.13" },
|
"2.8.13" },
|
||||||
@ -754,27 +754,27 @@ struct commandHelp {
|
|||||||
2,
|
2,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "MEMORY DOCTOR",
|
{ "MEMORY DOCTOR",
|
||||||
"-",
|
"",
|
||||||
"Outputs memory problems report",
|
"Outputs memory problems report",
|
||||||
9,
|
9,
|
||||||
"4.0.0" },
|
"4.0.0" },
|
||||||
{ "MEMORY HELP",
|
{ "MEMORY HELP",
|
||||||
"-",
|
"",
|
||||||
"Show helpful text about the different subcommands",
|
"Show helpful text about the different subcommands",
|
||||||
9,
|
9,
|
||||||
"4.0.0" },
|
"4.0.0" },
|
||||||
{ "MEMORY MALLOC-STATS",
|
{ "MEMORY MALLOC-STATS",
|
||||||
"-",
|
"",
|
||||||
"Show allocator internal stats",
|
"Show allocator internal stats",
|
||||||
9,
|
9,
|
||||||
"4.0.0" },
|
"4.0.0" },
|
||||||
{ "MEMORY PURGE",
|
{ "MEMORY PURGE",
|
||||||
"-",
|
"",
|
||||||
"Ask the allocator to release memory",
|
"Ask the allocator to release memory",
|
||||||
9,
|
9,
|
||||||
"4.0.0" },
|
"4.0.0" },
|
||||||
{ "MEMORY STATS",
|
{ "MEMORY STATS",
|
||||||
"-",
|
"",
|
||||||
"Show memory usage details",
|
"Show memory usage details",
|
||||||
9,
|
9,
|
||||||
"4.0.0" },
|
"4.0.0" },
|
||||||
@ -794,7 +794,7 @@ struct commandHelp {
|
|||||||
0,
|
0,
|
||||||
"2.6.0" },
|
"2.6.0" },
|
||||||
{ "MODULE LIST",
|
{ "MODULE LIST",
|
||||||
"-",
|
"",
|
||||||
"List all modules loaded by the server",
|
"List all modules loaded by the server",
|
||||||
9,
|
9,
|
||||||
"4.0.0" },
|
"4.0.0" },
|
||||||
@ -809,7 +809,7 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"4.0.0" },
|
"4.0.0" },
|
||||||
{ "MONITOR",
|
{ "MONITOR",
|
||||||
"-",
|
"",
|
||||||
"Listen for all requests received by the server in real time",
|
"Listen for all requests received by the server in real time",
|
||||||
9,
|
9,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
@ -829,7 +829,7 @@ struct commandHelp {
|
|||||||
1,
|
1,
|
||||||
"1.0.1" },
|
"1.0.1" },
|
||||||
{ "MULTI",
|
{ "MULTI",
|
||||||
"-",
|
"",
|
||||||
"Mark the start of a transaction block",
|
"Mark the start of a transaction block",
|
||||||
7,
|
7,
|
||||||
"1.2.0" },
|
"1.2.0" },
|
||||||
@ -909,22 +909,22 @@ struct commandHelp {
|
|||||||
6,
|
6,
|
||||||
"2.0.0" },
|
"2.0.0" },
|
||||||
{ "QUIT",
|
{ "QUIT",
|
||||||
"-",
|
"",
|
||||||
"Close the connection",
|
"Close the connection",
|
||||||
8,
|
8,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "RANDOMKEY",
|
{ "RANDOMKEY",
|
||||||
"-",
|
"",
|
||||||
"Return a random key from the keyspace",
|
"Return a random key from the keyspace",
|
||||||
0,
|
0,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "READONLY",
|
{ "READONLY",
|
||||||
"-",
|
"",
|
||||||
"Enables read queries for a connection to a cluster replica node",
|
"Enables read queries for a connection to a cluster replica node",
|
||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
{ "READWRITE",
|
{ "READWRITE",
|
||||||
"-",
|
"",
|
||||||
"Disables read queries for a connection to a cluster replica node",
|
"Disables read queries for a connection to a cluster replica node",
|
||||||
12,
|
12,
|
||||||
"3.0.0" },
|
"3.0.0" },
|
||||||
@ -944,7 +944,7 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"5.0.0" },
|
"5.0.0" },
|
||||||
{ "RESET",
|
{ "RESET",
|
||||||
"-",
|
"",
|
||||||
"Reset the connection",
|
"Reset the connection",
|
||||||
8,
|
8,
|
||||||
"6.2" },
|
"6.2" },
|
||||||
@ -954,7 +954,7 @@ struct commandHelp {
|
|||||||
0,
|
0,
|
||||||
"2.6.0" },
|
"2.6.0" },
|
||||||
{ "ROLE",
|
{ "ROLE",
|
||||||
"-",
|
"",
|
||||||
"Return the role of the instance in the context of replication",
|
"Return the role of the instance in the context of replication",
|
||||||
9,
|
9,
|
||||||
"2.8.12" },
|
"2.8.12" },
|
||||||
@ -984,7 +984,7 @@ struct commandHelp {
|
|||||||
3,
|
3,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "SAVE",
|
{ "SAVE",
|
||||||
"-",
|
"",
|
||||||
"Synchronously save the dataset to disk",
|
"Synchronously save the dataset to disk",
|
||||||
9,
|
9,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
@ -1014,7 +1014,7 @@ struct commandHelp {
|
|||||||
10,
|
10,
|
||||||
"2.6.0" },
|
"2.6.0" },
|
||||||
{ "SCRIPT KILL",
|
{ "SCRIPT KILL",
|
||||||
"-",
|
"",
|
||||||
"Kill the script currently in execution.",
|
"Kill the script currently in execution.",
|
||||||
10,
|
10,
|
||||||
"2.6.0" },
|
"2.6.0" },
|
||||||
@ -1164,12 +1164,12 @@ struct commandHelp {
|
|||||||
9,
|
9,
|
||||||
"4.0.0" },
|
"4.0.0" },
|
||||||
{ "SYNC",
|
{ "SYNC",
|
||||||
"-",
|
"",
|
||||||
"Internal command used for replication",
|
"Internal command used for replication",
|
||||||
9,
|
9,
|
||||||
"1.0.0" },
|
"1.0.0" },
|
||||||
{ "TIME",
|
{ "TIME",
|
||||||
"-",
|
"",
|
||||||
"Return the current server time",
|
"Return the current server time",
|
||||||
9,
|
9,
|
||||||
"2.6.0" },
|
"2.6.0" },
|
||||||
@ -1199,7 +1199,7 @@ struct commandHelp {
|
|||||||
6,
|
6,
|
||||||
"2.0.0" },
|
"2.0.0" },
|
||||||
{ "UNWATCH",
|
{ "UNWATCH",
|
||||||
"-",
|
"",
|
||||||
"Forget about all watched keys",
|
"Forget about all watched keys",
|
||||||
7,
|
7,
|
||||||
"2.2.0" },
|
"2.2.0" },
|
||||||
|
@ -44,7 +44,7 @@ def argument arg
|
|||||||
end
|
end
|
||||||
|
|
||||||
def arguments command
|
def arguments command
|
||||||
return "-" unless command["arguments"]
|
return "" unless command["arguments"]
|
||||||
command["arguments"].map do |arg|
|
command["arguments"].map do |arg|
|
||||||
argument arg
|
argument arg
|
||||||
end.join " "
|
end.join " "
|
||||||
|
Loading…
Reference in New Issue
Block a user