From 54bcd541d3dbe91c9215b0142fd2f7c088cbd559 Mon Sep 17 00:00:00 2001 From: runebaas Date: Thu, 10 May 2018 03:29:11 +0200 Subject: [PATCH] Fix run params --- Geekbot.net/Geekbot.net.csproj | 7 ++++++- Geekbot.net/Lib/RunParameters.cs | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Geekbot.net/Geekbot.net.csproj b/Geekbot.net/Geekbot.net.csproj index 425eb9f..33a1663 100755 --- a/Geekbot.net/Geekbot.net.csproj +++ b/Geekbot.net/Geekbot.net.csproj @@ -11,6 +11,11 @@ A Discord bot https://github.com/pizzaandcoffee/Geekbot.net NU1701 + git + https://geekbot.pizzaandcoffee.rocks + + + true @@ -88,4 +93,4 @@ - \ No newline at end of file + diff --git a/Geekbot.net/Lib/RunParameters.cs b/Geekbot.net/Lib/RunParameters.cs index 5485533..eb3ca37 100644 --- a/Geekbot.net/Lib/RunParameters.cs +++ b/Geekbot.net/Lib/RunParameters.cs @@ -17,7 +17,7 @@ namespace Geekbot.net.Lib [Option('j', "log-json", Default = false, HelpText = "Logs messages as json")] 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; } [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; } // Postresql connection - [Option("database", Default = false, HelpText = "Select a postgresql database")] - public string DbDatabase { get; set; } = "geekbot"; + [Option("database", Default = "geekbot", HelpText = "Select a postgresql database")] + public string DbDatabase { get; set; } - [Option("db-host", Default = false, HelpText = "Set a postgresql host (e.g. 127.0.0.1)")] - public string DbHost { get; set; } = "localhost"; + [Option("db-host", Default = "localhost", HelpText = "Set a postgresql host (e.g. 127.0.0.1)")] + public string DbHost { get; set; } - [Option("db-port", Default = false, HelpText = "Set a postgresql host (e.g. 5432)")] - public string DbPort { get; set; } = "5432"; + [Option("db-port", Default = "5432", HelpText = "Set a postgresql host (e.g. 5432)")] + public string DbPort { get; set; } - [Option("db-user", Default = false, HelpText = "Set a postgresql user")] - public string DbUser { get; set; } = "geekbot"; + [Option("db-user", Default = "geekbot", HelpText = "Set a postgresql user")] + public string DbUser { get; set; } - [Option("db-password", Default = false, HelpText = "Set a posgresql password")] - public string DbPassword { get; set; } = ""; + [Option("db-password", Default = "", HelpText = "Set a posgresql password")] + public string DbPassword { get; set; } } } \ No newline at end of file