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
@@ -69,12 +69,6 @@ public class App {
|
|||||||
logger.info(cl.getOptionValue("a"));
|
logger.info(cl.getOptionValue("a"));
|
||||||
stringToAppendToFoldername = 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) {
|
if (GraphicsEnvironment.isHeadless() || args.length > 0) {
|
||||||
handleArguments(args);
|
handleArguments(args);
|
||||||
@@ -122,6 +116,13 @@ public class App {
|
|||||||
Utils.configureLogger();
|
Utils.configureLogger();
|
||||||
logger.info("Initialized ripme v" + UpdateUtils.getThisJarVersion());
|
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
|
//Allow file overwriting
|
||||||
if (cl.hasOption('w')) {
|
if (cl.hasOption('w')) {
|
||||||
Utils.setConfigBoolean("file.overwrite", true);
|
Utils.setConfigBoolean("file.overwrite", true);
|
||||||
|
Reference in New Issue
Block a user