Commit be65f497 authored by Zachary T Welch's avatar Zachary T Welch
Browse files

fix foo command group help messages

Splits the old help strings to provide proper usage as well.
parent 5dd6457d
......@@ -58,19 +58,22 @@ static const struct command_registration foo_command_handlers[] = {
.name = "bar",
.handler = &handle_foo_command,
.mode = COMMAND_ANY,
.help = "<address> [enable|disable] - an example command",
.usage = "<address> [enable|disable]",
.help = "an example command",
},
{
.name = "baz",
.handler = &handle_foo_command,
.mode = COMMAND_ANY,
.help = "<address> [enable|disable] - a sample command",
.usage = "<address> [enable|disable]",
.help = "a sample command",
},
{
.name = "flag",
.handler = &handle_flag_command,
.mode = COMMAND_ANY,
.help = "[on|off] - set a flag",
.usage = "[on|off]",
.help = "set a flag",
},
COMMAND_REGISTRATION_DONE
};
......
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