If there is a command in redisCommandTable that has no corresponding entry in src/help.h, redis-cli displays as helpful of a typeahead as possible.

For example, if you added a new command to redisCommandTable:

    {"fancycommand",fancyCommand,2,"r",0,NULL,1,1,1,0,0},

redis-cli would display the following help (where | is the cursor):

127.0.0.1:6379> fancycommand| arg arg

However, this is incorrect. It should be:

127.0.0.1:6379> fancycommand| arg

It seems that the arity in the redisCommand (as expected) includes the command name itself, but redis-cli does not account for this.

Comment From: huangzhw

Already fixed.