fixed command line options to set the proper config variables
Costa Tsaousis committed
Jul 23, 2016 at 22:04 UTC
d644f7b110ec51c24f76ac7d07dc05c42f2cc52a
1 file changed
+3
-3
src/main.c
+3
-3
@@ -375,14 +375,14 @@ int main(int argc, char **argv)
375
help(0);
376
break;
377
case 'i':
378
- config_set("global", "bind socket to IP", optarg);
378
+ config_set("global", "bind to", optarg);
379
break;
380
case 'P':
381
strncpy(pidfile, optarg, FILENAME_MAX);
382
pidfile[FILENAME_MAX] = '\0';
383
break;
384
case 'p':
385
- config_set("global", "port", optarg);
385
+ config_set("global", "default port", optarg);
386
break;
387
case 's':
388
config_set("global", "host access prefix", optarg);
@@ -395,7 +395,7 @@ int main(int argc, char **argv)
395
break;
396
case 'v':
397
// TODO: Outsource version to makefile which can compute version from git.
398
- printf("netdata 1.1.0\n");
398
+ printf("netdata 1.2.1_master\n");
399
return 0;
400
break;
401
case 'W':