summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijaikumar M <vmallika@redhat.com>2014-01-06 15:26:15 +0530
committerVijaikumar M <vmallika@redhat.com>2014-01-06 15:27:10 +0530
commit1f29fab40076799946ec7c3f02b9ce2c532eb35d (patch)
treee7f653bab8d327546d219c54935251d1104327ba
parent976b983d26a81c23affca5455f6667487cbbe7e5 (diff)
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 <vmallika@redhat.com>
-rw-r--r--cli/src/cli-cmd-misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-misc.c b/cli/src/cli-cmd-misc.c
index 4aec8dd..566d7c9 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;