From c32b5fcaa9cc4aa2a5b0a88d91b58bbc4a110779 Mon Sep 17 00:00:00 2001 From: Julian Laubstein Date: Sun, 22 Nov 2015 23:57:53 +0100 Subject: Removed dashes in help messages for consistency --- src/Server.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/Server.cpp') diff --git a/src/Server.cpp b/src/Server.cpp index 12c45467d..0feb024c1 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -608,14 +608,14 @@ void cServer::PrintHelp(const AStringVector & a_Split, cCommandOutputCallback & void cServer::BindBuiltInConsoleCommands(void) { cPluginManager * PlgMgr = cPluginManager::Get(); - PlgMgr->BindConsoleCommand("help", nullptr, " - Shows the available commands"); - PlgMgr->BindConsoleCommand("reload", nullptr, " - Reloads all plugins"); - PlgMgr->BindConsoleCommand("restart", nullptr, " - Restarts the server cleanly"); - PlgMgr->BindConsoleCommand("stop", nullptr, " - Stops the server cleanly"); - PlgMgr->BindConsoleCommand("chunkstats", nullptr, " - Displays detailed chunk memory statistics"); - PlgMgr->BindConsoleCommand("load ", nullptr, " - Adds and enables the specified plugin"); - PlgMgr->BindConsoleCommand("unload ", nullptr, " - Disables the specified plugin"); - PlgMgr->BindConsoleCommand("destroyentities", nullptr, " - Destroys all entities in all worlds"); + PlgMgr->BindConsoleCommand("help", nullptr, "Shows the available commands"); + PlgMgr->BindConsoleCommand("reload", nullptr, "Reloads all plugins"); + PlgMgr->BindConsoleCommand("restart", nullptr, "Restarts the server cleanly"); + PlgMgr->BindConsoleCommand("stop", nullptr, "Stops the server cleanly"); + PlgMgr->BindConsoleCommand("chunkstats", nullptr, "Displays detailed chunk memory statistics"); + PlgMgr->BindConsoleCommand("load ", nullptr, "Adds and enables the specified plugin"); + PlgMgr->BindConsoleCommand("unload ", nullptr, "Disables the specified plugin"); + PlgMgr->BindConsoleCommand("destroyentities", nullptr, "Destroys all entities in all worlds"); #if defined(_MSC_VER) && defined(_DEBUG) && defined(ENABLE_LEAK_FINDER) PlgMgr->BindConsoleCommand("dumpmem", nullptr, " - Dumps all used memory blocks together with their callstacks into memdump.xml"); -- cgit v1.2.3 From 2d8b265133a5fcc0e0ac71cdbc7331280ba55636 Mon Sep 17 00:00:00 2001 From: Julian Laubstein Date: Mon, 23 Nov 2015 00:19:09 +0100 Subject: Added dash to helpstring output --- src/Server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Server.cpp') diff --git a/src/Server.cpp b/src/Server.cpp index 0feb024c1..f9727b978 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -597,7 +597,7 @@ void cServer::PrintHelp(const AStringVector & a_Split, cCommandOutputCallback & for (AStringPairs::const_iterator itr = Callback.m_Commands.begin(), end = Callback.m_Commands.end(); itr != end; ++itr) { const AStringPair & cmd = *itr; - a_Output.Out(Printf("%-*s%s\n", static_cast(Callback.m_MaxLen), cmd.first.c_str(), cmd.second.c_str())); + a_Output.Out(Printf("%-*s%s\n", static_cast(Callback.m_MaxLen), cmd.first.c_str(), (" - " + cmd.second).c_str())); } // for itr - Callback.m_Commands[] } -- cgit v1.2.3