diff options
author | shishir gowda <shishirng@gluster.com> | 2010-09-07 04:29:55 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-07 07:46:02 -0700 |
commit | 4f64c970ed1e334ba17413178eaf355f454c201f (patch) | |
tree | 750f403b0d541aaf6588b2207480deaf7d60fbcd /cli | |
parent | 95bafb5ad41458fbb16c680af94c2841c49c5322 (diff) |
Change cli volume/peer cmd's --help option to help
Signed-off-by: shishir gowda <shishirng@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1529 (need man pages for 'gluster' and 'glusterd')
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1529
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli-cmd-peer.c | 2 | ||||
-rw-r--r-- | cli/src/cli-cmd-volume.c | 2 | ||||
-rw-r--r-- | cli/src/cli-cmd.c | 2 |
3 files changed, 3 insertions, 3 deletions
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 <VOLNAME>"}, - { "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); |