server: small output improvement

For human users.
This commit is contained in:
Dirk-Jan C. Binnema 2023-02-17 20:15:37 +02:00
parent 9a1733e29d
commit 3d4805de0c
2 changed files with 5 additions and 4 deletions

View File

@ -715,10 +715,10 @@ Server::Private::help_handler(const Command& cmd)
auto&& info_map{command_handler_.info_map()};
if (command.empty()) {
std::cout << ";; Commands are s-expressions of the form\n"
std::cout << ";; Commands are single-line s-expressions of the form\n"
<< ";; (<command-name> :param1 val1 :param2 val2 ...)\n"
<< ";; For instance:\n;; (help :command quit)\n"
<< ";; to get detailed information about the 'quit'\n;;\n";
<< ";; For instance:\n;; (help :command mkdir)\n"
<< ";; to get detailed information about the 'mkdir' command\n;;\n";
std::cout << ";; The following commands are available:\n\n";
}

View File

@ -137,7 +137,8 @@ Mu::mu_cmd_server(const Mu::Options& opts) try {
setup_readline(histpath, 50);
install_sig_handler();
std::cout << ";; Welcome to the " << PACKAGE_STRING << " command-server\n"
std::cout << ";; Welcome to the " << PACKAGE_STRING << " command-server"
<< (opts.debug ? " (debug-mode)" : "") << '\n'
<< ";; Use (help) to get a list of commands, (quit) to quit.\n";
bool do_quit{};