From ec43d07c3ab758e0e8cfa427d914ab9c653068a4 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Sun, 14 Nov 2010 00:13:25 +0000 Subject: cli: remove special behavior for help commands without readline Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 2091 (Gluster CLI exits after issuing volume help) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2091 --- cli/src/cli-cmd-peer.c | 7 +------ cli/src/cli-cmd-system.c | 3 --- cli/src/cli-cmd-volume.c | 4 ---- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/cli/src/cli-cmd-peer.c b/cli/src/cli-cmd-peer.c index 5ae2007f39d..1f3ee624083 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; } diff --git a/cli/src/cli-cmd-system.c b/cli/src/cli-cmd-system.c index 8d55144749d..0c1b6d267c5 100644 --- a/cli/src/cli-cmd-system.c +++ b/cli/src/cli-cmd-system.c @@ -191,9 +191,6 @@ cli_cmd_system_help_cbk (struct cli_state *state, struct cli_cmd_word *in_word, for (cmd = cli_system_cmds; cmd->pattern; cmd++) cli_out ("%s - %s", cmd->pattern, cmd->desc); - if (!state->rl_enabled) - exit (0); - return 0; } diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 7a210953991..ef62e14f962 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -978,10 +978,6 @@ cli_cmd_volume_help_cbk (struct cli_state *state, struct cli_cmd_word *in_word, for (cmd = volume_cmds; cmd->pattern; cmd++) cli_out ("%s - %s", cmd->pattern, cmd->desc); - - if (!state->rl_enabled) - exit (0); - return 0; } -- cgit