Fix run params
This commit is contained in:
parent
5117e7609f
commit
54bcd541d3
2 changed files with 17 additions and 12 deletions
|
@ -11,6 +11,11 @@
|
||||||
<Description>A Discord bot</Description>
|
<Description>A Discord bot</Description>
|
||||||
<RepositoryUrl>https://github.com/pizzaandcoffee/Geekbot.net</RepositoryUrl>
|
<RepositoryUrl>https://github.com/pizzaandcoffee/Geekbot.net</RepositoryUrl>
|
||||||
<NoWarn>NU1701</NoWarn>
|
<NoWarn>NU1701</NoWarn>
|
||||||
|
<RepositoryType>git</RepositoryType>
|
||||||
|
<PackageProjectUrl>https://geekbot.pizzaandcoffee.rocks</PackageProjectUrl>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
<Optimize>true</Optimize>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CommandLineParser" Version="2.2.1" />
|
<PackageReference Include="CommandLineParser" Version="2.2.1" />
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace Geekbot.net.Lib
|
||||||
[Option('j', "log-json", Default = false, HelpText = "Logs messages as json")]
|
[Option('j', "log-json", Default = false, HelpText = "Logs messages as json")]
|
||||||
public bool LogJson { get; set; }
|
public bool LogJson { get; set; }
|
||||||
|
|
||||||
[Option("disable-api", Default = false, HelpText = "Disables the web api")]
|
[Option('a', "disable-api", Default = false, HelpText = "Disables the web api")]
|
||||||
public bool DisableApi { get; set; }
|
public bool DisableApi { get; set; }
|
||||||
|
|
||||||
[Option('e', "expose-errors", Default = false, HelpText = "Shows internal errors in the chat")]
|
[Option('e', "expose-errors", Default = false, HelpText = "Shows internal errors in the chat")]
|
||||||
|
@ -33,19 +33,19 @@ namespace Geekbot.net.Lib
|
||||||
public bool InMemory { get; set; }
|
public bool InMemory { get; set; }
|
||||||
|
|
||||||
// Postresql connection
|
// Postresql connection
|
||||||
[Option("database", Default = false, HelpText = "Select a postgresql database")]
|
[Option("database", Default = "geekbot", HelpText = "Select a postgresql database")]
|
||||||
public string DbDatabase { get; set; } = "geekbot";
|
public string DbDatabase { get; set; }
|
||||||
|
|
||||||
[Option("db-host", Default = false, HelpText = "Set a postgresql host (e.g. 127.0.0.1)")]
|
[Option("db-host", Default = "localhost", HelpText = "Set a postgresql host (e.g. 127.0.0.1)")]
|
||||||
public string DbHost { get; set; } = "localhost";
|
public string DbHost { get; set; }
|
||||||
|
|
||||||
[Option("db-port", Default = false, HelpText = "Set a postgresql host (e.g. 5432)")]
|
[Option("db-port", Default = "5432", HelpText = "Set a postgresql host (e.g. 5432)")]
|
||||||
public string DbPort { get; set; } = "5432";
|
public string DbPort { get; set; }
|
||||||
|
|
||||||
[Option("db-user", Default = false, HelpText = "Set a postgresql user")]
|
[Option("db-user", Default = "geekbot", HelpText = "Set a postgresql user")]
|
||||||
public string DbUser { get; set; } = "geekbot";
|
public string DbUser { get; set; }
|
||||||
|
|
||||||
[Option("db-password", Default = false, HelpText = "Set a posgresql password")]
|
[Option("db-password", Default = "", HelpText = "Set a posgresql password")]
|
||||||
public string DbPassword { get; set; } = "";
|
public string DbPassword { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue