diff options
| author | N Balachandran <nbalacha@redhat.com> | 2017-11-06 10:00:54 +0530 | 
|---|---|---|
| committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2017-11-16 14:37:45 +0000 | 
| commit | 22e14d7f8eb40838a0af8486abfbbd54364e9154 (patch) | |
| tree | 78aed6c064a6319254b3ae13b86415909fc35478 /cli/src/cli-cmd-snapshot.c | |
| parent | e1f780ca8f17b8b9615356796093dc7a75f5ff8a (diff) | |
cli: gluster help changes
gluster cli help now shows only the top level
help commands. gluster <component> help will now show
help commands for <component>.
> BUG: 1474768
> Signed-off-by: N Balachandran <nbalacha@redhat.com>
(cherry picked from commit 89dc54f50c9f800ca4446ea8fe736e4860588845)
Change-Id: I263f53a0870d80ef4cfaad455fdaa47e2ac4423b
BUG: 1509789
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-snapshot.c')
| -rw-r--r-- | cli/src/cli-cmd-snapshot.c | 5 | 
1 files changed, 5 insertions, 0 deletions
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;  }  | 
