Make sure that when checking arguments we stop looking when we encounter "--"