Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
dcdb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
dcdb
dcdb
Commits
be2d0558
Commit
be2d0558
authored
Mar 01, 2019
by
Alessio Netti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Help option now also displays default configuration values
parent
1a754858
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
src/dcdbpusher.cpp
src/dcdbpusher.cpp
+14
-10
No files found.
src/dcdbpusher.cpp
View file @
be2d0558
...
...
@@ -146,27 +146,31 @@ void printSyntax()
1 2 3 4 5 6 7 8
012345678901234567890123456789012345678901234567890123456789012345678901234567890
*/
_configuration
=
new
Configuration
(
""
);
global_t
&
globalSettings
=
_configuration
->
getGlobal
();
cout
<<
"Usage:"
<<
endl
;
cout
<<
" dcdbpusher [-d] [-x] [-a<string>] [-b<host>] [-p<port>] [-m<string>] [-t<number>] <path/to/configfiles/>"
<<
endl
;
cout
<<
" dcdbpusher -h"
<<
endl
;
cout
<<
endl
;
cout
<<
"Options:"
<<
endl
;
cout
<<
" -a <string> Enable sensor name auto-publish using the specified string as pattern"
<<
endl
;
cout
<<
" -b <host> MQTT broker"
<<
endl
;
cout
<<
" -p <port> MQTT broker port"
<<
endl
;
cout
<<
" -m <string> MQTT topic prefix"
<<
endl
;
cout
<<
" -t <number> Thread count"
<<
endl
;
cout
<<
" -w <path> Writable directory for temporal files"
<<
endl
;
cout
<<
" -c <sec> Caching interval of the sensors in [s]"
<<
endl
;
cout
<<
" -v <level> Set verbosity of output."
<<
endl
<<
" Can be a number between 5 (all output) and 0 (only fatal messages)."
<<
endl
<<
" Default level is 3 (info)"
<<
endl
;
cout
<<
" -a <string> Auto-publish pattern [default: none]"
<<
endl
;
cout
<<
" -b <host> MQTT broker [default: none]"
<<
endl
;
cout
<<
" -p <port> MQTT broker port [default: "
<<
globalSettings
.
brokerPort
<<
"]"
<<
endl
;
cout
<<
" -m <string> MQTT topic prefix [default: none]"
<<
endl
;
cout
<<
" -t <number> Thread count [default: "
<<
globalSettings
.
threads
<<
"]"
<<
endl
;
cout
<<
" -w <path> Writable temp dir [default: .]"
<<
endl
;
cout
<<
" -c <sec> Cache interval in [s] [default: "
<<
globalSettings
.
pluginSettings
.
cacheInterval
/
1000
<<
"]"
<<
endl
;
cout
<<
" -v <level> Set verbosity of output [default: "
<<
globalSettings
.
logLevelCmd
<<
"]"
<<
endl
<<
" Can be a number between 5 (all) and 0 (fatal)."
<<
endl
;
cout
<<
endl
;
cout
<<
" -d Daemonize"
<<
endl
;
cout
<<
" -x Parse and print the config but do not actually start dcdbpusher"
<<
endl
;
cout
<<
" -h This help page"
<<
endl
;
cout
<<
endl
;
delete
_configuration
;
_configuration
=
nullptr
;
}
int
main
(
int
argc
,
char
**
argv
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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