The getopt module is the original command line option parser that supports the conventions established by the Unix function getopt() . It parses an argument sequence, such as sys.argv and returns a sequence of tuples containing (option, argument) pairs and a sequence of non-option arguments. Read more… This post is part of the Python Module … Continue reading getopt — Command Line Option Parsing — PyMOTW 3
↧