main.py 文件源码

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

项目:topics 作者: jrconlin 项目源码 文件源码
def set_args():
    # type: () -> configargparse.ArgumentParser
    """Read in the args

    """
    parser = configargparse.ArgumentParser(
        default_config_files=["push_server.ini"],
    )
    parser.add_argument('--config', help='Common configuration file path',
                        dest='config_file', is_config_file=True)
    parser.add_argument('--debug', '-d', help="Debug info", default=False,
                        action="store_true")
    parser.add_argument('--port', '-p', help="Port to monitor",
                        default=8200, type=int)
    parser.add_argument('--storage', help='Credential storage file',
                        default='creds.txt', type=str)

    return parser
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号