Skip to content

Commit fef326b

Browse files
committed
fabric: added --force-reinstall option
1 parent f1814ab commit fef326b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/me/itzg/helpers/fabric/InstallFabricLoaderCommand.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public class InstallFabricLoaderCommand implements Callable<Integer> {
2828
@Option(names = "--results-file", description = ResultsFileWriter.OPTION_DESCRIPTION, paramLabel = "FILE")
2929
Path resultsFile;
3030

31+
@Option(names = "--force-reinstall", description = "Force reinstall of the loader even if it already exists")
32+
boolean forceReinstall;
33+
3134
@ArgGroup
3235
OriginOptions originOptions = new OriginOptions();
3336

@@ -85,7 +88,8 @@ else if (VERSION_PATTERN.matcher(value).matches()) {
8588
@Override
8689
public Integer call() throws Exception {
8790
final FabricLauncherInstaller installer = new FabricLauncherInstaller(outputDirectory)
88-
.setResultsFile(resultsFile);
91+
.setResultsFile(resultsFile)
92+
.setForceReinstall(forceReinstall);
8993

9094
if (originOptions.fromUri != null) {
9195
installer.installUsingUri(sharedFetchArgs.options(), originOptions.fromUri);

0 commit comments

Comments
 (0)