aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/client/settings.hpp
diff options
context:
space:
mode:
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);
}