From 1a34cd8e6a12e158aa0078b399305f13e257a21a Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 21 Dec 2014 08:42:50 -0800 Subject: [PATCH] Do not limit number of args for update on Non-Windows --- src/NzbDrone.Update/UpdateApp.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/NzbDrone.Update/UpdateApp.cs b/src/NzbDrone.Update/UpdateApp.cs index 288dddbcd..be5bf22f4 100644 --- a/src/NzbDrone.Update/UpdateApp.cs +++ b/src/NzbDrone.Update/UpdateApp.cs @@ -77,10 +77,6 @@ namespace NzbDrone.Update { case 1: return startupContext; - case 3: - startupContext.UpdateLocation = args[1]; - startupContext.ExecutingApplication = args[2]; - break; default: { Logger.Debug("Arguments:"); @@ -90,9 +86,10 @@ namespace NzbDrone.Update Logger.Debug(" {0}", arg); } - var message = String.Format("Number of arguments are unexpected, expected: 3, found: {0}", args.Count()); + startupContext.UpdateLocation = args[1]; + startupContext.ExecutingApplication = args[2]; - throw new ArgumentOutOfRangeException("args", message); + break; } } }