diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-08-17 03:37:46 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-17 02:23:59 -0700 |
commit | e5737546071bd1d38430503bb64b9998bd7870dd (patch) | |
tree | c5a9fe82f2474ff6c8792381c1b77384c9f82983 /cli/src/cli.h | |
parent | ead92558ee8ec71442b2fa2da1a0df197ee78467 (diff) |
cli: Implement help command
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1229 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1229
Diffstat (limited to 'cli/src/cli.h')
-rw-r--r-- | cli/src/cli.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/src/cli.h b/cli/src/cli.h index 9efabfe589d..9bc0b50946a 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); |