diff --git a/portablemc/cli/__init__.py b/portablemc/cli/__init__.py index 185d1f33..83824801 100644 --- a/portablemc/cli/__init__.py +++ b/portablemc/cli/__init__.py @@ -484,7 +484,7 @@ def cmd_start_handler(ns: StartNs, kind: str, parts: List[str]) -> Optional[Vers prefix = ns.legacyfabric_prefix elif kind == "babric": constructor = FabricVersion._with_babric - prefix = "babric" + prefix = ns.babric_prefix if len(parts) != 2: ns.socket_error_tips.append(f"{kind}_loader_version") diff --git a/portablemc/cli/lang.py b/portablemc/cli/lang.py index 01e3d72d..e873add4 100644 --- a/portablemc/cli/lang.py +++ b/portablemc/cli/lang.py @@ -93,7 +93,7 @@ def get(key: str, **kwargs) -> str: "args.start.version.comp.fabric": "Start Fabric mod loader with latest release.", "args.start.version.comp.legacyfabric": "Start LegacyFabric mod loader with latest release.", "args.start.version.comp.quilt": "Start Quilt mod loader with latest release.", - "args.start.version.comp.babric": "Start Babric mod loader with latest release.", + "args.start.version.comp.babric": "Start Babric mod loader with beta 1.7.3.", "args.start.version.comp.forge": "Start Forge mod loader with latest release.", "args.start.version.comp.neoforge": "Start NeoForge mod loader with latest release.", "args.start.dry": "Simulate game starting.", @@ -109,6 +109,7 @@ def get(key: str, **kwargs) -> str: "enabled by default.", "args.start.fabric_prefix": "Change the prefix of the version ID when starting with Fabric (--).", "args.start.legacyfabric_prefix": "Change the prefix of the version ID when starting with LegacyFabric (--).", + "args.start.babric_prefix": "Change the prefix of the version ID when starting with Babric (--).", "args.start.quilt_prefix": "Change the prefix of the version ID when starting with Quilt (--).", "args.start.forge_prefix": "Change the prefix of the version ID when starting with Forge (-).", "args.start.neoforge_prefix": "Change the prefix of the version ID when starting with NeoForge (-).", diff --git a/portablemc/cli/parse.py b/portablemc/cli/parse.py index 9a5febf9..a640b31b 100644 --- a/portablemc/cli/parse.py +++ b/portablemc/cli/parse.py @@ -47,6 +47,7 @@ class StartNs(AuthBaseNs): jvm: Optional[Path] jvm_args: Optional[str] no_fix: bool + babric_prefix: str fabric_prefix: str legacyfabric_prefix: str quilt_prefix: str @@ -147,6 +148,7 @@ def register_start_arguments(parser: ArgumentParser) -> None: parser.add_argument("--fabric-prefix", help=_("args.start.fabric_prefix"), default="fabric", metavar="PREFIX") parser.add_argument("--quilt-prefix", help=_("args.start.quilt_prefix"), default="quilt", metavar="PREFIX") parser.add_argument("--legacyfabric-prefix", help=_("args.start.legacyfabric_prefix"), default="legacyfabric", metavar="PREFIX") + parser.add_argument("--babric-prefix", help=_("args.start.babric_prefix"), default="babric", metavar="PREFIX") parser.add_argument("--forge-prefix", help=_("args.start.forge_prefix"), default="forge", metavar="PREFIX") parser.add_argument("--neoforge-prefix", help=_("args.start.neoforge_prefix"), default="neoforge", metavar="PREFIX") parser.add_argument("--lwjgl", help=_("args.start.lwjgl"))