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.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index 9efabfe58..9bc0b5094 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -56,6 +56,7 @@ struct cli_cmd_word { cli_cmd_filler_t *filler; cli_cmd_match_t *match; cli_cmd_cbk_t *cbkfn; + const char *desc; int nextwords_cnt; struct cli_cmd_word **nextwords; @@ -134,7 +135,7 @@ typedef ssize_t (*cli_serialize_t) (struct iovec outmsg, void *args); extern struct cli_state *global_state; /* use only in readline callback */ int cli_cmd_register (struct cli_cmd_tree *tree, const char *template, - cli_cmd_cbk_t cbk); + cli_cmd_cbk_t cbk, const char *desc); int cli_cmds_register (struct cli_state *state); int cli_input_init (struct cli_state *state); -- cgit