Do not limit number of args for update on Non-Windows

This commit is contained in:
Mark McDowall 2014-12-21 08:42:50 -08:00
parent 535b85e1de
commit 1a34cd8e6a
1 changed files with 3 additions and 6 deletions

View File

@ -77,10 +77,6 @@ namespace NzbDrone.Update
{ {
case 1: case 1:
return startupContext; return startupContext;
case 3:
startupContext.UpdateLocation = args[1];
startupContext.ExecutingApplication = args[2];
break;
default: default:
{ {
Logger.Debug("Arguments:"); Logger.Debug("Arguments:");
@ -90,9 +86,10 @@ namespace NzbDrone.Update
Logger.Debug(" {0}", arg); 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;
} }
} }
} }