More information about arguments when installing updates

This commit is contained in:
Mark McDowall 2014-06-02 10:41:34 -07:00
parent 903e804425
commit f214f97047
2 changed files with 16 additions and 2 deletions

View File

@ -88,12 +88,26 @@ namespace NzbDrone.Update
return startupContext;
}
if (args.Count() >= 3)
else if (args.Count() == 3)
{
startupContext.UpdateLocation = args[1];
startupContext.ExecutingApplication = args[2];
}
else
{
logger.Debug("Arguments:");
foreach (var arg in args)
{
logger.Debug(" {0}", arg);
}
var message = String.Format("Number of arguments are unexpected, expected: 3, found: {0}", args.Count());
throw new ArgumentOutOfRangeException("args", message);
}
return startupContext;
}

View File

@ -119,7 +119,7 @@
}
@media (min-width: @screen-md-min) {
width : 140px;
width : 135px;
}
}
}