This doesn't make much sense.  It's surely simply an error to be calling SetArgument before SetCommand.
See discussion below, about rolling it all into SetCommand(argv+i+1, argc-i-1), though.