diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-11 23:36:53 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-13 02:00:38 +0300 |
commit | a57b38577786cb245937e96ff58c3f3881d9a1ec (patch) | |
tree | e73d6144269ef30605520464dd7f9eeeb7e02688 /server | |
parent | add Boost constraints to CMakeLists.txt (diff) | |
download | math-server-a57b38577786cb245937e96ff58c3f3881d9a1ec.tar.gz math-server-a57b38577786cb245937e96ff58c3f3881d9a1ec.zip |
more clang-format friendly boost::program_options usage
Diffstat (limited to 'server')
-rw-r--r-- | server/main/settings.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/server/main/settings.hpp b/server/main/settings.hpp index 9f2e616..a334fe7 100644 --- a/server/main/settings.hpp +++ b/server/main/settings.hpp @@ -36,15 +36,15 @@ public: explicit SettingsParser(const std::string& argv0) : m_prog_name{extract_filename(argv0)} { - m_visible.add_options() - ("help,h", - "show this message and exit") - ("port,p", - boost::program_options::value(&m_settings.m_port)->default_value(Settings::DEFAULT_PORT), - "server port number") - ("threads,n", - boost::program_options::value(&m_settings.m_threads)->default_value(Settings::default_threads()), - "number of threads"); + m_visible.add_options()("help,h", "show this message and exit"); + m_visible.add_options()( + "port,p", + boost::program_options::value(&m_settings.m_port)->default_value(Settings::DEFAULT_PORT), + "server port number"); + m_visible.add_options()( + "threads,n", + boost::program_options::value(&m_settings.m_threads)->default_value(Settings::default_threads()), + "number of threads"); } static const char* get_short_description() { |