diff options
| author | N Balachandran <nbalacha@redhat.com> | 2017-11-06 09:30:54 +0530 |
|---|---|---|
| committer | jiffin tony Thottan <jthottan@redhat.com> | 2017-11-08 06:14:38 +0000 |
| commit | 3654ddc269a366d786cdef2a799a8b95025f1c8a (patch) | |
| tree | 9b5e2a29cbbba44915491afe885ada460af3b58c /cli/src/cli-cmd-global.c | |
| parent | 1a1bdfbffc81981a80af40ebf000194d9bcd1bf0 (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>.
Change-Id: I263f53a0870d80ef4cfaad455fdaa47e2ac4423b
BUG: 1509786
> BUG: 1474768
> Signed-off-by: N Balachandran <nbalacha@redhat.com>
(cherry picked from commit 89dc54f50c9f800ca4446ea8fe736e4860588845)
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-global.c')
| -rw-r--r-- | cli/src/cli-cmd-global.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-global.c b/cli/src/cli-cmd-global.c index 9873192686e..fb2ecb1d3de 100644 --- a/cli/src/cli-cmd-global.c +++ b/cli/src/cli-cmd-global.c @@ -62,11 +62,14 @@ cli_cmd_global_help_cbk (struct cli_state *state, struct cli_cmd_word *in_word, count = (sizeof (global_cmds) / sizeof (struct cli_cmd)); cli_cmd_sort (cmd, count); + cli_out ("\ngluster global commands"); + cli_out ("========================\n"); for (global_cmd = cmd; global_cmd->pattern; global_cmd++) if (_gf_false == global_cmd->disable) cli_out ("%s - %s", global_cmd->pattern, global_cmd->desc); + cli_out ("\n"); GF_FREE (cmd); return 0; } |
