From 812b5c3e658c6ed29fec9075a8a161195909010f Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 1 Nov 2020 11:54:23 +0200 Subject: [PATCH] server: improve help output --- lib/mu-server.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mu-server.cc b/lib/mu-server.cc index ea4d5911..a887dbbe 100644 --- a/lib/mu-server.cc +++ b/lib/mu-server.cc @@ -162,7 +162,7 @@ Server::Private::make_command_map () "document id of parent-message, if any"}}, {":decrypt", ArgInfo{Type::Symbol, false, "whether to decrypt encrypted parts (if any)" }}}, - "get contact information", + "compose a new message", [&](const auto& params){compose_handler(params);}}); cmap.emplace("contacts", @@ -786,7 +786,7 @@ Server::Private::help_handler (const Parameters& params) << ";; ( :param1 val1 :param2 val2 ...)\n" << ";; For instance:\n;; (help :command quit)\n" << ";; to get detailed information about the 'quit'\n;;\n"; - std::cout << ";; The following commands are available:\n"; + std::cout << ";; The following commands are available:\n\n"; } std::vector names; @@ -804,7 +804,7 @@ Server::Private::help_handler (const Parameters& params) std::cout << ";; " << format("%-10s -- %s\n", name.c_str(), info.docstring.c_str()); else - std::cout << ";; " << name.c_str() << ": " + std::cout << ";; " << name.c_str() << " -- " << info.docstring.c_str() << '\n'; if (!full) continue;