aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/main/settings.hpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-04 15:38:28 +0200
committerEgor Tensin <egor@tensin.name>2026-06-04 15:38:28 +0200
commitde58d43d48c379ad8fa0ef2694d4fb2feaaefe7e (patch)
treebf3843cdf626c678f17e64704bd42125f5a6a5be /server/main/settings.hpp
parentupdate benchmark (diff)
downloadmath-server-de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e.tar.gz
math-server-de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e.zip
adjust the formatting a little bit
Diffstat (limited to '')
-rw-r--r--server/main/settings.hpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/server/main/settings.hpp b/server/main/settings.hpp
index c0c974b..9d3eed0 100644
--- a/server/main/settings.hpp
+++ b/server/main/settings.hpp
@@ -20,12 +20,16 @@ namespace math::server {
struct Settings {
static constexpr unsigned short DEFAULT_PORT = 18000;
- static std::size_t default_threads() { return std::thread::hardware_concurrency(); }
+ static std::size_t default_threads() {
+ return std::thread::hardware_concurrency();
+ }
unsigned short m_port;
std::size_t m_threads;
- bool exit_with_usage() const { return m_vm.count("help"); }
+ bool exit_with_usage() const {
+ return m_vm.count("help");
+ }
boost::program_options::variables_map m_vm;
};
@@ -45,7 +49,9 @@ public:
"number of threads");
}
- static const char* get_short_description() { return "[-h|--help] [-p|--port] [-n|--threads]"; }
+ static const char* get_short_description() {
+ return "[-h|--help] [-p|--port] [-n|--threads]";
+ }
Settings parse(int argc, char* argv[]) {
namespace po = boost::program_options;
@@ -58,7 +64,9 @@ public:
return m_settings;
}
- void usage() const { std::cout << *this; }
+ void usage() const {
+ std::cout << *this;
+ }
void usage_error(const std::exception& e) const {
std::cerr << "usage error: " << e.what() << '\n';