summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-global.c
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2017-08-01 16:58:27 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-11-02 12:54:06 +0000
commit89dc54f50c9f800ca4446ea8fe736e4860588845 (patch)
tree3ab8f0d02c5b7cec5d113b60826a7bdffcdc47c7 /cli/src/cli-cmd-global.c
parentf9eedcad0127705c685e8b192726e46b170f00d1 (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: 1474768 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.c3
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;
}