79
91
" --version output version information and exit\n"
81
93
"Report bugs to <%(PACKAGE_BUGREPORT)s>.\n"
86
99
"""Parse command-line arguments."""
90
104
optlist, args = getopt.gnu_getopt(sys.argv[1:],
91
105
'cdhV', ('check', 'debug', 'help', 'version', ))
92
106
for flag, arg in optlist:
93
107
if flag in ('-c', '--check'):
95
110
elif flag in ('-d', '--debug'):
97
113
elif flag in ('-h', '--help'):
98
114
display_usage(sys.stdout)