From 89dc54f50c9f800ca4446ea8fe736e4860588845 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Tue, 1 Aug 2017 16:58:27 +0530 Subject: cli: gluster help changes gluster cli help now shows only the top level help commands. gluster help will now show help commands for . Change-Id: I263f53a0870d80ef4cfaad455fdaa47e2ac4423b BUG: 1474768 Signed-off-by: N Balachandran --- cli/src/cli-cmd-snapshot.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/src/cli-cmd-snapshot.c') diff --git a/cli/src/cli-cmd-snapshot.c b/cli/src/cli-cmd-snapshot.c index e79128c5a59..88b4737cd65 100644 --- a/cli/src/cli-cmd-snapshot.c +++ b/cli/src/cli-cmd-snapshot.c @@ -140,9 +140,14 @@ cli_cmd_snapshot_help_cbk (struct cli_state *state, count = (sizeof (snapshot_cmds) / sizeof (struct cli_cmd)); cli_cmd_sort (cmd, count); + cli_out ("\ngluster snapshot commands"); + cli_out ("=========================\n"); + for (snap_cmd = cmd; snap_cmd->pattern; snap_cmd++) if (_gf_false == snap_cmd->disable) cli_out ("%s - %s", snap_cmd->pattern, snap_cmd->desc); + cli_out ("\n"); + GF_FREE (cmd); return 0; } -- cgit