From e5737546071bd1d38430503bb64b9998bd7870dd Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Tue, 17 Aug 2010 03:37:46 +0000 Subject: cli: Implement help command Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 1229 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1229 --- cli/src/cli-cmd-peer.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'cli/src/cli-cmd-peer.c') diff --git a/cli/src/cli-cmd-peer.c b/cli/src/cli-cmd-peer.c index 2959444f..b9acd344 100644 --- a/cli/src/cli-cmd-peer.c +++ b/cli/src/cli-cmd-peer.c @@ -174,15 +174,18 @@ out: struct cli_cmd cli_probe_cmds[] = { { "peer probe [PORT]", - cli_cmd_peer_probe_cbk }, + cli_cmd_peer_probe_cbk, + "probe peer specified by "}, { "peer detach ", - cli_cmd_peer_deprobe_cbk }, + cli_cmd_peer_deprobe_cbk, + "detach peer specified by "}, { "peer status", - cli_cmd_peer_status_cbk}, + cli_cmd_peer_status_cbk, + "list status of peers"}, - { NULL, NULL } + { NULL, NULL, NULL } }; @@ -193,7 +196,8 @@ cli_cmd_probe_register (struct cli_state *state) struct cli_cmd *cmd = NULL; for (cmd = cli_probe_cmds; cmd->pattern; cmd++) { - ret = cli_cmd_register (&state->tree, cmd->pattern, cmd->cbk); + ret = cli_cmd_register (&state->tree, cmd->pattern, cmd->cbk, + cmd->desc); if (ret) goto out; } -- cgit