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:
parent
1f58fe3cd6
commit
83027237c7
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue