From fa0d7ed96d987e031176d1b40b01359542cd654f Mon Sep 17 00:00:00 2001 From: bored <39490544+bored@users.noreply.github.com> Date: Fri, 25 May 2018 22:25:22 +0100 Subject: [PATCH] Reverse -n, --no-prop-file behaviour --- src/main/java/com/rarchives/ripme/App.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/App.java b/src/main/java/com/rarchives/ripme/App.java index dac3980a..0d875401 100644 --- a/src/main/java/com/rarchives/ripme/App.java +++ b/src/main/java/com/rarchives/ripme/App.java @@ -225,7 +225,7 @@ public class App { logger.debug("Skipping over line \"" + url + "\"because it is a comment"); } else { // loop through each url in the file and process each url individually. - ripURL(url.trim(), cl.hasOption("n")); + ripURL(url.trim(), !cl.hasOption("n")); } } } catch (FileNotFoundException fne) { @@ -238,7 +238,7 @@ public class App { //The URL to rip. if (cl.hasOption('u')) { String url = cl.getOptionValue('u').trim(); - ripURL(url, cl.hasOption("n")); + ripURL(url, !cl.hasOption("n")); } }