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