1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

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 @@ private UpdateStartupContext ParseArgs(string[] args)
return startupContext; return startupContext;
} }
if (args.Count() >= 3) else if (args.Count() == 3)
{ {
startupContext.UpdateLocation = args[1]; startupContext.UpdateLocation = args[1];
startupContext.ExecutingApplication = args[2]; 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; return startupContext;
} }

View File

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