生成标准的、符合Unix/Posix 规范的命令行说明 1 2 3 4 5 6 7 8 9 10 11 from optparse import OptionParser parser = OptionParser() parser.add_option('-p', '--pdbk', action = 'store_true', dest = 'pdcl', default = False, help = 'write pdbk data to oracle db') parser.add_option('-z', '--zdbk', action = 'store_true', dest =