getopt

getopt — C-style parser for command line options

Source code: Lib/getopt.py

Note

The getopt module is a parser for command line options whose API is designed to be familiar to users of the C getopt() function. Users who are unfamiliar with the C getopt() function or who would like to write less code and get better help and error messages should consider using the 登录查看完整内容