aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client/input.hpp8
-rw-r--r--client/settings.hpp20
2 files changed, 21 insertions, 7 deletions
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<std::string> 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';