more info about -W set
Costa Tsaousis (ktsaou) committed
Mar 23, 2017 at 01:05 UTC
28bbf7a0955739353e118fdc47c3aae2813eae4d
1 file changed
+10
src/main.c
+10
@@ -299,6 +299,8 @@ void help(int exitcode) {
299
" -W stacksize=N Set the stacksize (in bytes).\n\n"
300
" -W debug_flags=N Set runtime tracing to debug.log.\n\n"
301
" -W unittest Run internal unittests and exit.\n\n"
302
+ " -W set section option value\n"
303
+ " set netdata.conf option from the command line.\n\n"
304
" -W simple-pattern pattern string\n"
305
" Check if string matches pattern and exit.\n\n"
306
);
@@ -697,6 +699,14 @@ int main(int argc, char **argv) {
699
fprintf(stderr, "%s", "\nUSAGE: -W set 'section' 'key' 'value'\n\n"
700
" Overwrites settings of netdata.conf.\n"
701
"\n"
702
+ " These options interact with: -c netdata.conf\n"
703
+ " If -c netdata.conf is given on the command line,\n"
704
+ " before -W set... the user may overwrite command\n"
705
+ " line parameters at netdata.conf\n"
706
+ " If -c netdata.conf is given after (or missing)\n"
707
+ " -W set... the user cannot overwrite the command line\n"
708
+ " parameters."
709
+ "\n"
710
);
711
exit(1);
712
}