mccdl.py 文件源码

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

项目:mccdl 作者: jkoelndorfer 项目源码 文件源码
def configure_argparser(self):
        a = self.argparser
        a.add_argument(
            "-c", "--cache-directory", type=str, default=str(CurseForgeClient.DEFAULT_CACHE_DIR),
            help="Path to directory to cache mccdl files. Defaults to %(default)s."
        )
        a.add_argument(
            "-l", "--log-level", type=str, default="info",
            choices=("debug", "info", "warning", "error", "critical"),
            help="Log level to use  for this run. Defaults to %(default)s."
        )
        a.add_argument(
            "--upgrade", action="store_true", default=False,
            help="If specified, allow upgrading an existing modpack instance."
        )
        a.add_argument(
            "--multimc-directory", type=str, default=appdirs.user_data_dir("multimc5"),
            help="Path to the MultiMC directory. Defaults to %(default)s."
        )
        a.add_argument(
            "modpack_url", type=str,
            help="Link to the modpack on Minecraft CurseForge."
        )
        a.add_argument(
            "instance_name", type=str,
            help="Name of the MultiMC instance to create."
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号