Logged In: NO

you could change argv[pos++] to argv[++pos] instead,
that would work too.