__init__.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:torn 作者: pytorn 项目源码 文件源码
def cli():
    """Function for cli"""
    epilog = ('The actions are:\n'
              '\tnew\t\tCreate a Tornado Application\n'
              '\trun\t\trun the app and start a Web server for development\n'
              '\tapi\t\tcreate an API tornado application\n'
              '\tversion\t\treturns the current version of torn\n')
    parser = ArgumentParser(prog='torn',
                            description='A full fledged Tornado MVC framework [In-progress]',
                            formatter_class=RawDescriptionHelpFormatter,
                            epilog=epilog,
                            usage='%(prog)s [action [arguments]]')
    parser.add_argument('action',
                        nargs='*',
                        default=['new', 'api', 'run'],
                        help='Action to be performed with the application')
    parser.parse_args()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号