mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-21 13:11:27 +02:00
Update App.java
This commit is contained in:
committed by
GitHub
parent
bac9bcea63
commit
1d3815d274
@@ -70,12 +70,6 @@ public class App {
|
||||
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);
|
||||
} else {
|
||||
@@ -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);
|
||||
|
Reference in New Issue
Block a user