Commit a77e773d authored by Michael Ott's avatar Michael Ott
Browse files

Fix command line parameters in collect agent

parent bd5d71ff
......@@ -205,7 +205,7 @@ void usage() {
012345678901234567890123456789012345678901234567890123456789012345678901234567890
*/
cout << "Usage:" << endl;
cout << " collectagent [-m<host>] [-r<host>] [-c<host>] [-t<ttl>] [-d] [-s]" << endl;
cout << " collectagent [-m<host>] [-r<host>] [-c<host>] [-u<username>] [-p<password>] [-t<ttl>] [-d] [-s]" << endl;
cout << " collectagent -h" << endl;
cout << endl;
......@@ -250,11 +250,14 @@ int main(int argc, char* const argv[]) {
ttl = "0";
statistics = false;
while ((ret=getopt(argc, argv, "l:c:u:p:t:r:dDsh"))!=-1) {
while ((ret=getopt(argc, argv, "m:r:c:u:p:t:dDsh"))!=-1) {
switch(ret) {
case 'l':
case 'm':
listenHost = optarg;
break;
case 'r':
restApiHost = optarg;
break;
case 'c':
cassandraHost = optarg;
break;
......@@ -273,9 +276,6 @@ int main(int argc, char* const argv[]) {
case 't':
ttl = optarg;
break;
case 'r':
restApiHost = optarg;
break;
case 'd':
case 'D':
dcdbdaemon();
......
Supports Markdown
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