Question #345

Which standard library module helps scripts to parse command-line arguments?

getopt helps scripts to parse the command line arguments in sys.argv. It supports the same conventions as the Unix getopt() function (including the special meanings of arguments of the form ‘-‘ and ‘--‘). The other modules don't exist! (docs.python.org/3.1/library/getopt.html)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵