fix foo command group help messages

Splits the old help strings to provide proper usage as well.
This commit is contained in:
Zachary T Welch 2009-11-29 16:48:40 -08:00
parent 5dd6457d2c
commit be65f497f5
1 changed files with 6 additions and 3 deletions

View File

@ -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
};