summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-peer.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2010-11-14 00:13:25 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-14 10:26:52 -0800
commitec43d07c3ab758e0e8cfa427d914ab9c653068a4 (patch)
tree51c96d2077262aea0d1eed366d136857ff3870cc /cli/src/cli-cmd-peer.c
parent22aa43c16357811f8218215d2f2f830005860c96 (diff)
cli: remove special behavior for help commands without readline
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2091 (Gluster CLI exits after issuing volume help) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2091
Diffstat (limited to 'cli/src/cli-cmd-peer.c')
-rw-r--r--cli/src/cli-cmd-peer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/cli/src/cli-cmd-peer.c b/cli/src/cli-cmd-peer.c
index 5ae2007f3..1f3ee6240 100644
--- a/cli/src/cli-cmd-peer.c
+++ b/cli/src/cli-cmd-peer.c
@@ -199,16 +199,11 @@ cli_cmd_peer_help_cbk (struct cli_state *state, struct cli_cmd_word *in_word,
{
struct cli_cmd *cmd = NULL;
-
+
for (cmd = cli_probe_cmds; cmd->pattern; cmd++)
cli_out ("%s - %s", cmd->pattern, cmd->desc);
-
-
- if (!state->rl_enabled)
- exit (0);
-
return 0;
}