pythonic参数分析器
consoleargs的Python项目详细描述
人类的参数分析器
这个库实现了简单的参数解析器, 基于函数签名和docstring消息
用法
用法示例:
>>> from consoleargs import command >>> @command >>> def main(destination, name=None, verbose=0): >>> """ >>> :param destination: Where to look >>> :param name: Whot to search >>> :param verbose: How much to talk >>> """ >>> print destination, name, verbose