diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-01-14 18:29:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-14 18:29:47 +0100 |
commit | 79d371de47465a7138b924579f3c2ef7deff327e (patch) | |
tree | b4e9cc1864d5e6d57341c851e6926662b4fe3aa8 | |
parent | 9c4bdf1225d1828326fdfc162296eef14b79f0c0 (diff) | |
parent | 41173f5a6f076654bdd14600b7fa877630e2cc37 (diff) |
Merge pull request #8136 from vespa-engine/hmusum/fix-options
h is a valid option
-rw-r--r-- | config/src/apps/vespa-configproxy-cmd/main.cpp | 2 | ||||
-rw-r--r-- | config/src/apps/vespa-configproxy-cmd/methods.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/src/apps/vespa-configproxy-cmd/main.cpp b/config/src/apps/vespa-configproxy-cmd/main.cpp index 63fa1285bb2..bb908e7268b 100644 --- a/config/src/apps/vespa-configproxy-cmd/main.cpp +++ b/config/src/apps/vespa-configproxy-cmd/main.cpp @@ -22,7 +22,7 @@ Application::parseOpts() char c = '?'; const char *optArg = NULL; int optInd = 0; - while ((c = GetOpt("m:s:p:", optArg, optInd)) != -1) { + while ((c = GetOpt("m:s:p:h", optArg, optInd)) != -1) { switch (c) { case 'm': _flags.method = optArg; diff --git a/config/src/apps/vespa-configproxy-cmd/methods.cpp b/config/src/apps/vespa-configproxy-cmd/methods.cpp index 6a143667102..6218c54e8b3 100644 --- a/config/src/apps/vespa-configproxy-cmd/methods.cpp +++ b/config/src/apps/vespa-configproxy-cmd/methods.cpp @@ -14,7 +14,7 @@ const Method methods[] = { { "cachefull", "listCachedConfigFull", 0 }, { "sources", "listSourceConnections", 0 }, { "statistics", "printStatistics", 0 }, - { "setmode", "setMode", 1 }, // { default | memorycache | diskcache } + { "setmode", "setMode", 1 }, // { default | memorycache } { "updatesources", "updateSources", 1 }, { 0, 0, 0} }; |