COMMAND HELP
Introduction
The COMMAND HELP
command provides details on all the available subcommands for the COMMAND
command in DiceDB. This command is useful for obtaining information on what each subcommand does and how to use them.
Syntax
Parameters
This command does not accept any parameters.
Return values
Condition | Return Value |
---|---|
Command is successful | Help text detailing the available subcommands for the COMMAND command. |
Error | An error is returned if the command fails. |
Behavior
The COMMAND HELP
command outputs help text that lists all the available subcommands for the COMMAND
command. It is used to understand how each subcommand functions and the available options for those subcommands.
Errors
Arity Error
- Error Message:
(error) ERR wrong number of arguments for 'command|help' command
- Occurs when invalid number of arguments provided to
COMMAND HELP
command.
- Error Message:
Example Usage
Print help
Arity Error
An error is thrown when extra arguments are passed to the COMMAND HELP
command, as it does not accept any additional arguments.