]> arthur.barton.de Git - netdata.git/commitdiff
more info about -W set
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 22 Mar 2017 23:05:45 +0000 (01:05 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 22 Mar 2017 23:05:45 +0000 (01:05 +0200)
src/main.c

index c661f75999f2802d58b77566374ba4dae430c19b..e3d78c4a3218faf11bab39b8c91456ad2bfcaa71 100644 (file)
@@ -299,6 +299,8 @@ void help(int exitcode) {
             "  -W stacksize=N           Set the stacksize (in bytes).\n\n"
             "  -W debug_flags=N         Set runtime tracing to debug.log.\n\n"
             "  -W unittest              Run internal unittests and exit.\n\n"
+            "  -W set section option value\n"
+            "                           set netdata.conf option from the command line.\n\n"
             "  -W simple-pattern pattern string\n"
             "                           Check if string matches pattern and exit.\n\n"
     );
@@ -697,6 +699,14 @@ int main(int argc, char **argv) {
                                 fprintf(stderr, "%s", "\nUSAGE: -W set 'section' 'key' 'value'\n\n"
                                         " Overwrites settings of netdata.conf.\n"
                                         "\n"
+                                        " These options interact with: -c netdata.conf\n"
+                                        " If -c netdata.conf is given on the command line,\n"
+                                        " before -W set... the user may overwrite command\n"
+                                        " line parameters at netdata.conf\n"
+                                        " If -c netdata.conf is given after (or missing)\n"
+                                        " -W set... the user cannot overwrite the command line\n"
+                                        " parameters."
+                                        "\n"
                                 );
                                 exit(1);
                             }