summaryrefslogtreecommitdiff
path: root/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.cpp')
-rw-r--r--src/options.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/options.cpp b/src/options.cpp
index 7505eb5..82481c0 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -51,6 +51,16 @@ std::ostream& operator<<(std::ostream& stream, syntax_error const& error)
return stream;
}
+std::ostream& operator<<(std::ostream& stream, role_t const& role)
+{
+ switch(role) {
+ case ROLE_LEFT: stream << "left"; break;
+ case ROLE_RIGHT: stream << "right"; break;
+ default: stream << "unknown"; break;
+ }
+ return stream;
+}
+
void OptionHost::init(std::string addrPort)
{
std::string origAddrPort(addrPort);