From 1f29fab40076799946ec7c3f02b9ce2c532eb35d Mon Sep 17 00:00:00 2001 From: Vijaikumar M Date: Mon, 6 Jan 2014 15:26:15 +0530 Subject: glusterd/snapshot: "gluster help" to list the usage for snapshot commands Currently "gluster help" only list the volume and peer command family. With this fix it will also list the usage for snapshot commands. Change-Id: I75601496e4f027250c2381eff94e4283bb98299a BUG: 1043472 Signed-off-by: Vijaikumar M --- cli/src/cli-cmd-misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-misc.c b/cli/src/cli-cmd-misc.c index 4aec8dd35..566d7c978 100644 --- a/cli/src/cli-cmd-misc.c +++ b/cli/src/cli-cmd-misc.c @@ -32,6 +32,7 @@ extern struct cli_cmd cli_probe_cmds[]; extern struct cli_cmd cli_log_cmds[]; extern struct cli_cmd cli_system_cmds[]; extern struct cli_cmd cli_bd_cmds[]; +extern struct cli_cmd snapshot_cmds[]; struct cli_cmd cli_misc_cmds[]; int @@ -46,7 +47,7 @@ cli_cmd_display_help (struct cli_state *state, struct cli_cmd_word *in_word, const char **words, int wordcount) { struct cli_cmd *cmd[] = {volume_cmds, cli_probe_cmds, - cli_misc_cmds, + cli_misc_cmds, snapshot_cmds, NULL}; struct cli_cmd *cmd_ind = NULL; int i = 0; -- cgit