mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 15:32:37 -07:00
Made the base better
This commit is contained in:
parent
1af3c21655
commit
75d3c40fcf
1 changed files with 20 additions and 10 deletions
|
@ -50,19 +50,29 @@ namespace PlexRequests.UI
|
||||||
var port = -1;
|
var port = -1;
|
||||||
if (args.Length > 0)
|
if (args.Length > 0)
|
||||||
{
|
{
|
||||||
Log.Info("We are going to use port {0} that was passed in", args[0]);
|
foreach (var a in args)
|
||||||
|
{
|
||||||
|
if (a.StartsWith("-base", StringComparison.CurrentCultureIgnoreCase))
|
||||||
|
{
|
||||||
|
Console.WriteLine("Settings URL Base");
|
||||||
|
assetLocation = args[0];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Log.Info("We are going to use port {0} that was passed in", a);
|
||||||
int portResult;
|
int portResult;
|
||||||
if (!int.TryParse(args[0], out portResult))
|
if (!int.TryParse(a, out portResult))
|
||||||
{
|
{
|
||||||
Console.WriteLine("Didn't pass in a port");
|
Console.WriteLine("Didn't pass in a port");
|
||||||
Console.WriteLine("Must be the URL Base");
|
|
||||||
assetLocation = args[0];
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
port = portResult;
|
port = portResult;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Log.Trace("Getting product version");
|
Log.Trace("Getting product version");
|
||||||
WriteOutVersion();
|
WriteOutVersion();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue