aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/client
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-11 23:36:53 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-13 02:00:38 +0300
commita57b38577786cb245937e96ff58c3f3881d9a1ec (patch)
treee73d6144269ef30605520464dd7f9eeeb7e02688 /client
parentadd Boost constraints to CMakeLists.txt (diff)
downloadmath-server-a57b38577786cb245937e96ff58c3f3881d9a1ec.tar.gz
math-server-a57b38577786cb245937e96ff58c3f3881d9a1ec.zip
more clang-format friendly boost::program_options usage
Diffstat (limited to '')
-rw-r--r--client/settings.hpp33
1 files changed, 17 insertions, 16 deletions
diff --git a/client/settings.hpp b/client/settings.hpp
index 25f230b..2e72dba 100644
--- a/client/settings.hpp
+++ b/client/settings.hpp
@@ -45,22 +45,23 @@ public:
explicit SettingsParser(const std::string& argv0)
: m_prog_name{extract_filename(argv0)}
{
- m_visible.add_options()
- ("help,h",
- "show this message and exit")
- ("command,c",
- boost::program_options::value(&m_settings.m_input),
- "evaluate the argument expression and exit")
- ("host,H",
- boost::program_options::value(&m_settings.m_host)->default_value("localhost"),
- "server host address")
- ("port,p",
- boost::program_options::value(&m_settings.m_port)->default_value(NetworkTransport::DEFAULT_PORT),
- "server port number");
- m_hidden.add_options()
- ("files",
- boost::program_options::value<std::vector<std::string>>(&m_settings.m_files),
- "shouldn't be visible");
+ m_visible.add_options()("help,h", "show this message and exit");
+ m_visible.add_options()(
+ "command,c",
+ boost::program_options::value(&m_settings.m_input),
+ "evaluate the argument expression and exit");
+ m_visible.add_options()(
+ "host,H",
+ boost::program_options::value(&m_settings.m_host)->default_value("localhost"),
+ "server host address");
+ m_visible.add_options()(
+ "port,p",
+ boost::program_options::value(&m_settings.m_port)->default_value(NetworkTransport::DEFAULT_PORT),
+ "server port number");
+ m_hidden.add_options()(
+ "files",
+ boost::program_options::value<std::vector<std::string>>(&m_settings.m_files),
+ "shouldn't be visible");
m_positional.add("files", -1);
}