refactor: adjust the help message for core to combine server and client message fixing man page deployment

This commit is contained in:
sithlord48 2025-08-19 14:13:16 -04:00 committed by Nick Bolton
parent 3b2d7fc0b3
commit 6f8b3f481d
4 changed files with 12 additions and 8 deletions

View file

@ -24,7 +24,12 @@ void showHelp()
std::cout << "Usage: deskflow-core <server | client> [...options]" << std::endl; std::cout << "Usage: deskflow-core <server | client> [...options]" << std::endl;
std::cout << "server - start as a server (deskflow-server)" << std::endl; std::cout << "server - start as a server (deskflow-server)" << std::endl;
std::cout << "client - start as a client (deskflow-client)" << std::endl; std::cout << "client - start as a client (deskflow-client)" << std::endl;
std::cout << "use deskflow-core <server|client> --help for more information." << std::endl;
ServerApp sApp(nullptr);
sApp.help();
ClientApp cApp(nullptr);
cApp.help();
} }
bool isServer(int argc, char **argv) bool isServer(int argc, char **argv)

View file

@ -1,5 +1,5 @@
[SEE ALSO] [SEE ALSO]
deskflow(1), deskflow-client(1), deskflow-server(2) deskflow(1), deskflow-core(1)
All documentation is on the web, so please point your browser at All documentation is on the web, so please point your browser at
<https://github.com/deskflow/deskflow/wiki> and surf away. <https://github.com/deskflow/deskflow/wiki> and surf away.

View file

@ -99,7 +99,9 @@ void ClientApp::parseArgs(int argc, const char *const *argv)
void ClientApp::help() void ClientApp::help()
{ {
std::stringstream help; std::stringstream help;
help << "Usage: " << args().m_pname << " [--address <address>]" help << "\n\nClient Mode:\n\n"
<< "Usage: " << kAppId << "-core client"
<< " [--address <address>]"
<< " [--yscroll <delta>]" << " [--yscroll <delta>]"
<< " [--sync-language]" << " [--sync-language]"
<< " [--invert-scroll]" << " [--invert-scroll]"

View file

@ -100,8 +100,8 @@ void ServerApp::parseArgs(int argc, const char *const *argv)
void ServerApp::help() void ServerApp::help()
{ {
std::stringstream help; std::stringstream help;
help << "Usage: " << args().m_pname help << "\n\nServer Mode:\n\n"
<< "Usage: " << kAppId << "-core server"
<< " --config <pathname>" << " --config <pathname>"
<< " [--address <address>]" << " [--address <address>]"
@ -110,9 +110,6 @@ void ServerApp::help()
#endif #endif
<< s_helpSysArgs << s_helpCommonArgs << "\n" << s_helpSysArgs << s_helpCommonArgs << "\n"
<< "\n"
<< "Start the " << kAppName << " mouse/keyboard sharing server.\n"
<< "\n"
<< " -a, --address <address> listen for clients on the given address.\n" << " -a, --address <address> listen for clients on the given address.\n"
<< " -c, --config <pathname> path of the configuration file\n" << " -c, --config <pathname> path of the configuration file\n"
<< s_helpGeneralArgs << s_helpGeneralArgs