]> arthur.barton.de Git - netdata.git/commitdiff
fixed command line options to set the proper config variables
authorCosta Tsaousis <costa@tsaousis.gr>
Sat, 23 Jul 2016 19:04:15 +0000 (22:04 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Sat, 23 Jul 2016 19:04:15 +0000 (22:04 +0300)
src/main.c

index d1fed57dafc39bdce6f101c14ffb562f4b175fdc..41590c56daf1dde0d9ec47836df41d648e1a28f5 100644 (file)
@@ -375,14 +375,14 @@ int main(int argc, char **argv)
                                        help(0);
                                        break;
                                case 'i':
-                                       config_set("global", "bind socket to IP", optarg);
+                                       config_set("global", "bind to", optarg);
                                        break;
                                case 'P':
                                        strncpy(pidfile, optarg, FILENAME_MAX);
                                        pidfile[FILENAME_MAX] = '\0';
                                        break;
                                case 'p':
-                                       config_set("global", "port", optarg);
+                                       config_set("global", "default port", optarg);
                                        break;
                                case 's':
                                        config_set("global", "host access prefix", optarg);
@@ -395,7 +395,7 @@ int main(int argc, char **argv)
                                        break;
                                case 'v':
                                        // TODO: Outsource version to makefile which can compute version from git.
-                                       printf("netdata 1.1.0\n");
+                                       printf("netdata 1.2.1_master\n");
                                        return 0;
                                        break;
                                case 'W':