Commit 99d78cb8 authored by Dominik Charousset's avatar Dominik Charousset

Use shorter notation for parsing CLI args

parent 5f8abef0
......@@ -184,7 +184,7 @@ void client_repl(const string& host, uint16_t port) {
int main(int argc, char** argv) {
uint16_t port = 0;
string host = "localhost";
auto res = message_builder(argv + 1, argv + argc).to_message().filter_cli({
auto res = message_builder(argv + 1, argv + argc).filter_cli({
{"port,p", "set port (either to publish at or to connect to)", port},
{"host,H", "set host (client mode only, default: localhost)", host},
{"server,s", "run in server mode"},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment