in reply to ARGV question

I agree with toolic. Is there a specific reason that you need this code, or was the purpose of the question purely for understanding?