Close input stream (ProgressMonitor) after copying

This commit is contained in:
comp500 2019-05-21 01:19:39 +01:00
parent d5128f7eb3
commit 26b8e1de86

View File

@ -44,6 +44,7 @@ public class Main {
// TODO: link these somehow so they're only defined once? // TODO: link these somehow so they're only defined once?
private static void addBootstrapOptions(Options options) { private static void addBootstrapOptions(Options options) {
options.addOption(null, "bootstrap-update-url", true, "Github API URL for checking for updates"); options.addOption(null, "bootstrap-update-url", true, "Github API URL for checking for updates");
options.addOption(null, "bootstrap-update-token", true, "Github API Access Token, for private repositories");
options.addOption(null, "bootstrap-no-update", false, "Don't update packwiz-installer"); options.addOption(null, "bootstrap-no-update", false, "Don't update packwiz-installer");
options.addOption(null, "bootstrap-main-jar", true, "Location of the packwiz-installer JAR file"); options.addOption(null, "bootstrap-main-jar", true, "Location of the packwiz-installer JAR file");
options.addOption("g", "no-gui", false, "Don't display a GUI to show update progress"); options.addOption("g", "no-gui", false, "Don't display a GUI to show update progress");