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
评论列表
文章目录