cli.py 文件源码

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

项目:millilauncher 作者: fhfuih 项目源码 文件源码
def launch(version, raw):
    """
    Launch Minecraft of the given version
    """
    launcher = LauncherCore(config.mc_dir, config.java_dir)
    if raw:
        click.echo(launcher.launch_raw(version, config.username, config.max_mem))
    else:
        launcher.launch(version, config.username, config.max_mem)

# @main.command('download')
# @click.argument('version')
# @click.option('-c', '--client', is_flag=True)
# @click.option('-a', '--assets', is_flag=True)
# @click.option('-l', '--libraries', is_flag=True)
# @click.option('-F', '--forge', is_flag=True)
# @click.option('-L', '--liteloader', is_flag=True)
# @click.option('-E', '--external', is_flag=True, default=False, help='Open the download link externally.\
#     Useful when you want to download files in another manner. Default is False')
# def _download(version, **components):
#     """
#     Download Minecraft, components or mods
#     """
#     pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号