From: Costa Tsaousis Date: Sat, 23 Jul 2016 19:04:15 +0000 (+0300) Subject: fixed command line options to set the proper config variables X-Git-Tag: v1.3.0~51^2~3 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=d644f7b110ec51c24f76ac7d07dc05c42f2cc52a;p=netdata.git fixed command line options to set the proper config variables --- diff --git a/src/main.c b/src/main.c index d1fed57d..41590c56 100644 --- a/src/main.c +++ b/src/main.c @@ -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':