Python : parsing the command line options using optparse

Mark Lawrence breamoreboy at
Tue Feb 25 17:46:54 CET 2014

On 25/02/2014 15:31, Ganesh Pal wrote:
> Hi Folks ,
> Iam newbie to Python, Iam trying to use optparse module and write a
> script that will parse the command line options ..I had to use opt parse
> instead of argparse because by host Operating system  is still using
> python 2.6

Do you have the needed permissions to simply drop the argparse code into 
the 2.6 stdlib?  Could you use the third party docopt instead?  It's on 
pypi and I think it's awesome :)

My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

This email is free from viruses and malware because avast! Antivirus protection is active.

More information about the Python-list mailing list