Skip to content

Commit

Permalink
Merge pull request #1862 from tintinhamans/ripsdirectory-fix
Browse files Browse the repository at this point in the history
Move -l option up to allow setting path for -r/-R
  • Loading branch information
cyian-1756 authored May 4, 2021
2 parents 3cba822 + fbf4273 commit f16f2b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/com/rarchives/ripme/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ private static void handleArguments(String[] args) {
Utils.setConfigBoolean("errors.skip404", true);
}

//Destination directory
if (cl.hasOption('l')) {
// change the default rips directory
Utils.setConfigString("rips.directory", cl.getOptionValue('l'));
}

//Re-rip <i>all</i> previous albums
if (cl.hasOption('r')) {
// Re-rip all via command-line
Expand Down Expand Up @@ -245,12 +251,6 @@ private static void handleArguments(String[] args) {
System.exit(-1);
}

//Destination directory
if (cl.hasOption('l')) {
// change the default rips directory
Utils.setConfigString("rips.directory", cl.getOptionValue('l'));
}

//Read URLs from File
if (cl.hasOption('f')) {
String filename = cl.getOptionValue('f');
Expand Down

0 comments on commit f16f2b3

Please sign in to comment.