diff mbox

[ovs-dev,3/4] ovs-appctl: Add usage content to "dpctl/*" command.

Message ID 1481014882-99783-3-git-send-email-nic@opencloud.tech
State Accepted
Headers show

Commit Message

nickcooper-zhangtonghao Dec. 6, 2016, 9:01 a.m. UTC
Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech>
---
 lib/dpctl.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Comments

Ben Pfaff Dec. 6, 2016, 7:24 p.m. UTC | #1
On Tue, Dec 06, 2016 at 01:01:21AM -0800, nickcooper-zhangtonghao wrote:
> Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech>

Applied to master, thanks!
diff mbox

Patch

diff --git a/lib/dpctl.c b/lib/dpctl.c
index edccb7f..bdccce7 100644
--- a/lib/dpctl.c
+++ b/lib/dpctl.c
@@ -1780,8 +1780,12 @@  dpctl_unixctl_register(void)
     for (p = all_commands; p->name != NULL; p++) {
         if (strcmp(p->name, "help")) {
             char *cmd_name = xasprintf("dpctl/%s", p->name);
-            unixctl_command_register(cmd_name, "", p->min_args, p->max_args,
-                                     dpctl_unixctl_handler, p->handler);
+            unixctl_command_register(cmd_name,
+                                     p->usage,
+                                     p->min_args,
+                                     p->max_args,
+                                     dpctl_unixctl_handler,
+                                     p->handler);
             free(cmd_name);
         }
     }