cli: fix option parsing bug which implied that only a single option can be used

Change-Id: I89467d00030f4714568ef63650ecef0aef1bf753
BUG: 3242
Reviewed-on: http://review.gluster.com/94
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
This commit is contained in:
Csaba Henk 2011-07-23 12:14:48 +02:00 committed by Vijay Bellur
parent d58382182e
commit 3d67836dba

View File

@ -375,6 +375,8 @@ parse_cmdline (int argc, char *argv[], struct cli_state *state)
for (j = i; j < state->argc - 1; j++)
state->argv[j] = state->argv[j + 1];
state->argc--;
/* argv shifted, next check should be at i again */
i--;
}
}