[module] Parser for command line options

The module optparse was deprecated since version 2.7 and will not be developed further; development will continue with the argparse module.

The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will figure out how to parse those out of sys.argv. The argparse module also automatically generates help and usage messages and issues errors when users give the program invalid arguments.

posted on 2012-06-11 10:09  Xingning Ou  阅读(106)  评论(0编辑  收藏  举报

导航