Browse Source

fix foo command group help messages

Splits the old help strings to provide proper usage as well.
tags/v0.4.0-rc1
Zachary T Welch 14 years ago
parent
commit
be65f497f5
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      src/hello.c

+ 6
- 3
src/hello.c 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
};


Loading…
Cancel
Save