Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
dcdb
dcdb
Commits
a77e773d
Commit
a77e773d
authored
Mar 23, 2018
by
Michael Ott
Browse files
Fix command line parameters in collect agent
parent
bd5d71ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
CollectAgent/collectagent.cpp
View file @
a77e773d
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment