1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-21 05:01:30 +02:00

Update App.java

This commit is contained in:
inthebrilliantblue
2019-07-02 14:16:34 -05:00
committed by GitHub
parent bac9bcea63
commit 1d3815d274

View File

@@ -69,12 +69,6 @@ public class App {
logger.info(cl.getOptionValue("a"));
stringToAppendToFoldername = cl.getOptionValue("a");
}
if (cl.hasOption('z')) {
String historyLocation = cl.getOptionValue('z').trim();
Utils.setConfigString("history.location", historyLocation);
logger.info("Set history file to " + historyLocation);
}
if (GraphicsEnvironment.isHeadless() || args.length > 0) {
handleArguments(args);
@@ -122,6 +116,13 @@ public class App {
Utils.configureLogger();
logger.info("Initialized ripme v" + UpdateUtils.getThisJarVersion());
//Set history file
if (cl.hasOption("z")) {
String historyLocation = cl.getOptionValue("z").trim();
Utils.setConfigString("history.location", historyLocation);
logger.info("Set history file to " + historyLocation);
}
//Allow file overwriting
if (cl.hasOption('w')) {
Utils.setConfigBoolean("file.overwrite", true);