diff options
author | Csaba Henk <csaba@gluster.com> | 2010-09-15 08:11:15 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-16 23:07:27 -0700 |
commit | 63ec13f022ae99c1664fbdbc9e6623903ba843af (patch) | |
tree | fdde04563f5081e4322c0bf75541631293100fd8 /cli/src/cli-cmd-misc.c | |
parent | 47bc630dca589235d7c10e2748cebaa5e419d5d7 (diff) |
cli: add a simplistic option parser, convert "mode script" to "--mode=script"
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1570 (geosync related changes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570
Diffstat (limited to 'cli/src/cli-cmd-misc.c')
-rw-r--r-- | cli/src/cli-cmd-misc.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/cli/src/cli-cmd-misc.c b/cli/src/cli-cmd-misc.c index 7833456b730..306a7628faa 100644 --- a/cli/src/cli-cmd-misc.c +++ b/cli/src/cli-cmd-misc.c @@ -61,10 +61,8 @@ cli_cmd_display_help (struct cli_state *state, struct cli_cmd_word *in_word, for (cmd = cli_probe_cmds; cmd->pattern; cmd++) cli_out ("%s - %s", cmd->pattern, cmd->desc); - for (cmd = cli_misc_cmds; cmd->pattern; cmd++) { - if (cmd->cbk) - cli_out ("%s - %s", cmd->pattern, cmd->desc); - } + for (cmd = cli_misc_cmds; cmd->pattern; cmd++) + cli_out ("%s - %s", cmd->pattern, cmd->desc); if (!state->rl_enabled) exit (0); @@ -81,10 +79,6 @@ struct cli_cmd cli_misc_cmds[] = { cli_cmd_display_help, "display command options"}, - { "mode script", - NULL, - "assign gluster execution mode"}, - { NULL, NULL, NULL } }; |