def __get_opts(self):
self.__msv_jar = None
try:
options, arguments = getopt.getopt(sys.argv[1:], 'h', ['help', 'clean','local', 'msv-jar=' ])
except getopt.GetoptError, error:
sys.stderr.write(str(error))
self.__help_message()
sys.exit(1)
self.__local = None
self.__clean = None
for opt, opt_arg in options:
if 'msv-jar' in opt:
self.__msv_jar = opt_arg
if '-h' in opt or '--help' in opt:
self.__help_message()
sys.exit(0)
if '--local' in opt:
self.__local = 1
if '--clean' in opt:
self.__clean = 1
评论列表
文章目录