http://docopt.org/
youtube视频在这:
PyCon UK 2012: Create *beautiful* command-line interfaces with Python
optparse argparse又臭又长,这个才是直观好用的命令行参数解析器,直接把标准usage的字符串传过去就好了
除了python,还支持ruby, coffeescript, php, lua, c
youtube视频在这:
PyCon UK 2012: Create *beautiful* command-line interfaces with Python
optparse argparse又臭又长,这个才是直观好用的命令行参数解析器,直接把标准usage的字符串传过去就好了
除了python,还支持ruby, coffeescript, php, lua, c