You mention "v2" in the usage message, but "v2" is not processed in this while loop. Maybe "v2" mention in the usage message is a leftover?