Add descriptions to module commands

Each module command has to describe what it does. This should make module
commands self-documenting to some degree.
This commit is contained in:
Markus Mäkelä
2017-06-09 13:23:30 +03:00
parent 06995837cf
commit 45afbda100
11 changed files with 50 additions and 27 deletions

View File

@ -675,7 +675,8 @@ static MXS_ROUTER* createInstance(SERVICE* service, char** options)
/* Register a custom command */
if (!modulecmd_register_command("rrrouter", "test_command",
MODULECMD_TYPE_ACTIVE, custom_cmd_example,
2, custom_cmd_args))
2, custom_cmd_args,
"This is the command description"))
{
MXS_ERROR("Module command registration failed.");
}