aboutsummaryrefslogtreecommitdiffstats
path: root/slobrok
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2021-09-07 13:52:38 +0000
committerArne H Juul <arnej@yahooinc.com>2021-09-07 13:52:41 +0000
commit49ca91bbfc28bbdc34a6a4dd3ac859c4a03b4074 (patch)
tree39fe6c527cbf20abb7682a92d7a5fb8519c89bdf /slobrok
parent8707cca893220dd9b08f003559d0613fe0097778 (diff)
accept option "-N" (for new logic)
* note: this is a no-op for now.
Diffstat (limited to 'slobrok')
-rw-r--r--slobrok/src/apps/slobrok/slobrok.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/slobrok/src/apps/slobrok/slobrok.cpp b/slobrok/src/apps/slobrok/slobrok.cpp
index 390b7356410..63212745644 100644
--- a/slobrok/src/apps/slobrok/slobrok.cpp
+++ b/slobrok/src/apps/slobrok/slobrok.cpp
@@ -54,7 +54,7 @@ App::Main()
int argi = 1;
const char* optArg;
int c;
- while ((c = GetOpt("c:s:p:", optArg, argi)) != -1) {
+ while ((c = GetOpt("c:s:p:N", optArg, argi)) != -1) {
switch (c) {
case 'c':
cfgId = std::string(optArg);
@@ -62,6 +62,9 @@ App::Main()
case 'p':
portnum = atoi(optArg);
break;
+ case 'N':
+ // ignore flag for now
+ break;
default:
LOG(error, "unknown option letter '%c'", c);
return 1;