Skip to content

Commit

Permalink
Update App.java
Browse files Browse the repository at this point in the history
  • Loading branch information
inthebrilliantblue authored Jul 2, 2019
1 parent bac9bce commit 1d3815d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/com/rarchives/ripme/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ public static void main(String[] args) throws MalformedURLException {
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);
Expand Down Expand Up @@ -122,6 +116,13 @@ private static void handleArguments(String[] args) {
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);
Expand Down

0 comments on commit 1d3815d

Please sign in to comment.