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 << "server - start as a server (deskflow-server)" << 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)

View File

@ -1,5 +1,5 @@
[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
<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()
{
std::stringstream help;
help << "Usage: " << args().m_pname << " [--address <address>]"
help << "\n\nClient Mode:\n\n"
<< "Usage: " << kAppId << "-core client"
<< " [--address <address>]"
<< " [--yscroll <delta>]"
<< " [--sync-language]"
<< " [--invert-scroll]"

View File

@ -100,8 +100,8 @@ void ServerApp::parseArgs(int argc, const char *const *argv)
void ServerApp::help()
{
std::stringstream help;
help << "Usage: " << args().m_pname
help << "\n\nServer Mode:\n\n"
<< "Usage: " << kAppId << "-core server"
<< " --config <pathname>"
<< " [--address <address>]"
@ -110,9 +110,6 @@ void ServerApp::help()
#endif
<< 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"
<< " -c, --config <pathname> path of the configuration file\n"
<< s_helpGeneralArgs