diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-02 12:54:32 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-02 12:54:32 +0200 |
commit | 500bc64f7671cfa9dbcfe1c2d808ea67eb0c3a42 (patch) | |
tree | fd1221559a8e7b5c9d4033dc7da8a811053ec961 /lib/configuration | |
parent | Enable console output on Win32 (diff) | |
download | smolbote-500bc64f7671cfa9dbcfe1c2d808ea67eb0c3a42.tar.xz |
Add --no-remote option
Diffstat (limited to 'lib/configuration')
-rw-r--r-- | lib/configuration/configuration.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp index 648eec8..c7209e3 100644 --- a/lib/configuration/configuration.cpp +++ b/lib/configuration/configuration.cpp @@ -27,17 +27,6 @@ inline std::string defaultUserConfigLocation() return path.toStdString(); } -constexpr const char *defaultSocketPath() -{ -#if defined(Q_OS_UNIX) - // could be a path such as "/tmp/foo" - return "/tmp/smolbote.socket"; -#elif defined(Q_OS_WIN32) - // could be a pipe path such as "\\.\pipe\foo" - return "\\\\.\\pipe\\smolbote_socket"; -#endif -} - Configuration::Configuration(QObject *parent) : QObject(parent) { @@ -49,18 +38,18 @@ Configuration::Configuration(QObject *parent) ("build", "Display build branch and commit.") ("config,c", po::value<std::string>()->default_value(defaultUserConfigLocation()), "Set the configuration file.") - ("socket,s", po::value<std::string>()->default_value(defaultSocketPath()), "Local server socket") + ("no-remote", "Do not accept or send remote commands.") - ("args", po::value<std::vector<std::string>>(), "arguments") + ("args", po::value<std::vector<std::string>>(), "Command(s) and/or URL(s).") ; arguments_desc.add("args", -1); configuration_desc.add_options() ("browser.stylesheet", po::value<std::string>()) - ("browser.session", po::value<std::string>(), "Load session data from the specified path.") - ("browser.locale", po::value<std::string>()) - ("browser.translation", po::value<std::string>()) + ("browser.session", po::value<std::string>(), "Load session data from specified arg.") + ("browser.locale", po::value<std::string>(), "Set Qt localization.") + ("browser.translation", po::value<std::string>(), "Set application localization.") // main window ui ("mainwindow.height", po::value<int>()->default_value(720)) |