We Recommend

Learning Python Learning Python
The authors of Learning Python show you enough essentials of the Python scripting language to enable you to begin solving problems right away, then reveal more powerful aspects of the language one at a time. This approach is sure to appeal to programmers and system administrators who have urgent problems and a preference for learning by semi-guided experimentation.


Posted By

ndegruchy on 07/06/06


Tagged

textmate python optparse


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

ndegruchy
anayhk
fukami


OptParse Option Parsing


Published in: Python 


  1. from optparse import OptionParser
  2.  
  3. Usage = "%s" % "untitled.py"
  4. Parser = OptionParser(Usage)
  5. Parser.add_option("", dest="", help = """.""")
  6. (Options, Args) = Parser.parse_args()

Report this snippet 

You need to login to post a comment.