can anyone show a small sample of how optparse module can be used to parse a command line arguement?
the command line is somewhat like:
<scriptname> -ip<ip address> -opt1/opt2
can anyone show a small sample of how optparse module can be used to parse a command line arguement?
the command line is somewhat like:
<scriptname> -ip<ip address> -opt1/opt2
By google knows method having not used the module myself, this looks promissing:
http://www.saltycrane.com/blog/2009/09/python-optparse-example/
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.