summaryrefslogtreecommitdiffstatshomepage
path: root/client/settings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/settings.hpp')
-rw-r--r--client/settings.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/settings.hpp b/client/settings.hpp
index 3c8d6aa..6481a21 100644
--- a/client/settings.hpp
+++ b/client/settings.hpp
@@ -11,6 +11,7 @@
#include <exception>
#include <filesystem>
+#include <format>
#include <iostream>
#include <string>
#include <vector>
@@ -94,7 +95,7 @@ public:
}
void usage_error(const std::exception& e) const {
- std::cerr << "usage error: " << e.what() << '\n';
+ std::cerr << std::format("usage error: {}\n", e.what());
std::cerr << *this;
}
@@ -112,7 +113,7 @@ private:
Settings m_settings;
friend std::ostream& operator<<(std::ostream& os, const SettingsParser& parser) {
- os << "usage: " << parser.m_prog_name << ' ' << get_short_description() << '\n';
+ os << std::format("usage: {} {}\n", parser.m_prog_name, get_short_description());
os << parser.m_visible;
return os;
}