1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

relay: add "-d" option to villas-relay

This commit is contained in:
Steffen Vogel 2019-01-12 19:07:03 +01:00
parent 1f58fe3cd6
commit 83027237c7

View file

@ -299,8 +299,12 @@ int main(int argc, char *argv[])
ctx_info.port = 8088;
char c, *endptr;
while ((c = getopt (argc, argv, "hVp:P:l")) != -1) {
while ((c = getopt (argc, argv, "hVp:P:ld:")) != -1) {
switch (c) {
case 'd':
spdlog::set_level(spdlog::level::from_str(optarg));
break;
case 'p':
ctx_info.port = strtoul(optarg, &endptr, 10);
goto check;