From 705890d5ec2638068f2e328bc5a6ae669c134534 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 19 Jul 2015 10:57:33 -0600 Subject: [PATCH] Added change port argument to console app --- src/Jackett.Console/Program.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Jackett.Console/Program.cs b/src/Jackett.Console/Program.cs index 99a610f7c..ff544025c 100644 --- a/src/Jackett.Console/Program.cs +++ b/src/Jackett.Console/Program.cs @@ -22,14 +22,17 @@ namespace JackettConsole { switch (args[0].ToLowerInvariant()) { - case "/i": + case "/i": // install Engine.ServiceConfig.Install(); return; - case "/r": - Engine.Server.ReserveUrls(); + case "/r": // reserve port/url & install + Engine.Server.ReserveUrls(doInstall: true); return; - case "/u": - Engine.Server.ReserveUrls(false); + case "/c": // change port + Engine.Server.ReserveUrls(doInstall: false); + return; + case "/u": // uninstall + Engine.Server.ReserveUrls(doInstall: false); Engine.ServiceConfig.Uninstall(); return; } @@ -40,9 +43,9 @@ namespace JackettConsole Engine.RunTime.Spin(); Engine.Logger.Info("Server thread exit"); } - catch(Exception e) + catch (Exception e) { - Engine.Logger.Error(e, "Top level exception"); + Engine.Logger.Error(e, "Top level exception"); } } }