From 4f64c970ed1e334ba17413178eaf355f454c201f Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Tue, 7 Sep 2010 04:29:55 +0000 Subject: Change cli volume/peer cmd's --help option to help Signed-off-by: shishir gowda Signed-off-by: Vijay Bellur BUG: 1529 (need man pages for 'gluster' and 'glusterd') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1529 --- cli/src/cli-cmd-peer.c | 2 +- cli/src/cli-cmd-volume.c | 2 +- cli/src/cli-cmd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/src') diff --git a/cli/src/cli-cmd-peer.c b/cli/src/cli-cmd-peer.c index fef29c164ec..d0c7639ada4 100644 --- a/cli/src/cli-cmd-peer.c +++ b/cli/src/cli-cmd-peer.c @@ -188,7 +188,7 @@ struct cli_cmd cli_probe_cmds[] = { cli_cmd_peer_status_cbk, "list status of peers"}, - { "peer --help", + { "peer help", cli_cmd_peer_help_cbk, "Help command for peer "}, diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 01fff9bf11a..1eb7ec0954c 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -778,7 +778,7 @@ struct cli_cmd volume_cmds[] = { cli_cmd_volume_set_cbk, "set options for volume "}, - { "volume --help", + { "volume help", cli_cmd_volume_help_cbk, "display help for the volume command"}, diff --git a/cli/src/cli-cmd.c b/cli/src/cli-cmd.c index 934936af92d..011edacfe90 100644 --- a/cli/src/cli-cmd.c +++ b/cli/src/cli-cmd.c @@ -95,7 +95,7 @@ cli_cmd_process (struct cli_state *state, int argc, char **argv) return -1; } - if ( strcmp (word->word,"--help")==0 ) + if ( strcmp (word->word,"help")==0 ) goto callback; await_conn = cli_cmd_needs_connection (word); -- cgit