From 30a2d015aa1a865f1a666711c3b887ec997f53fc Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Fri, 1 Jun 2018 16:00:32 -0400 Subject: [PATCH] Added -j flag for updating ripme --- src/main/java/com/rarchives/ripme/App.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/rarchives/ripme/App.java b/src/main/java/com/rarchives/ripme/App.java index a4da1cae..81dafce5 100644 --- a/src/main/java/com/rarchives/ripme/App.java +++ b/src/main/java/com/rarchives/ripme/App.java @@ -241,6 +241,10 @@ public class App { ripURL(url, !cl.hasOption("n")); } + if (cl.hasOption('j')) { + UpdateUtils.updateProgramCLI(); + } + } /** @@ -290,6 +294,7 @@ public class App { opts.addOption("v", "version", false, "Show current version"); opts.addOption("s", "socks-server", true, "Use socks server ([user:password]@host[:port])"); opts.addOption("p", "proxy-server", true, "Use HTTP Proxy server ([user:password]@host[:port])"); + opts.addOption("j", "update", false, "Update ripme"); return opts; }