From de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 Jun 2026 15:38:28 +0200 Subject: adjust the formatting a little bit --- client/input.hpp | 8 ++++++-- client/settings.hpp | 20 +++++++++++++++----- 2 files changed, 21 insertions(+), 7 deletions(-) (limited to 'client') diff --git a/client/input.hpp b/client/input.hpp index bdf71ad..41424ed 100644 --- a/client/input.hpp +++ b/client/input.hpp @@ -37,7 +37,9 @@ class FileReader : public Reader { public: explicit FileReader(const std::string& path) : m_path{path} {} - bool for_each_input(const InputHandler& process) const override { return enum_lines(process); } + bool for_each_input(const InputHandler& process) const override { + return enum_lines(process); + } private: bool enum_lines(const InputHandler& process) const { @@ -95,7 +97,9 @@ class StringReader : public Reader { public: explicit StringReader(const std::string& input) : m_input{input} {} - bool for_each_input(const InputHandler& process) const override { return process(m_input); } + bool for_each_input(const InputHandler& process) const override { + return process(m_input); + } private: const std::string m_input; diff --git a/client/settings.hpp b/client/settings.hpp index 823595b..806e644 100644 --- a/client/settings.hpp +++ b/client/settings.hpp @@ -23,13 +23,21 @@ struct Settings { std::string m_port; std::vector m_files; - bool exit_with_usage() const { return m_vm.count("help"); } + bool exit_with_usage() const { + return m_vm.count("help"); + } - bool input_from_string() const { return m_vm.count("command"); } + bool input_from_string() const { + return m_vm.count("command"); + } - bool input_from_files() const { return !input_from_string() && !m_files.empty(); } + bool input_from_files() const { + return !input_from_string() && !m_files.empty(); + } - bool input_from_console() const { return !input_from_string() && !input_from_files(); } + bool input_from_console() const { + return !input_from_string() && !input_from_files(); + } boost::program_options::variables_map m_vm; }; @@ -70,7 +78,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'; -- cgit v1.3