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! (

Comment on Disqus:

Comment on Twitter:

Question difficulty: πŸ”΅πŸ”΅πŸ”΅πŸ”΅πŸ”΅