From 432e5d9a015e9ece66a0e11d5ac95d6625283a2c Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Tue, 3 May 2016 15:48:42 +0100 Subject: [PATCH] Honor the --service-token flag properly. --- prog/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prog/main.go b/prog/main.go index 2d3827ad4..d3c9d154a 100644 --- a/prog/main.go +++ b/prog/main.go @@ -120,10 +120,10 @@ func main() { flag.Bool("probe-only", false, "Only run the probe.") flag.Bool("no-probe", false, "Don't run the probe.") flag.Bool("app-only", false, "Only run the app") - flag.String("service-token", "", "Token to use to authenticate with scope.weave.works") // Probe flags - flag.StringVar(&flags.probe.token, "probe.token", "default-token", "Token to use to authenticate with scope.weave.works") + flag.StringVar(&flags.probe.token, "service-token", "", "Token to use to authenticate with scope.weave.works") + flag.StringVar(&flags.probe.token, "probe.token", "", "Token to use to authenticate with scope.weave.works") flag.StringVar(&flags.probe.httpListen, "probe.http.listen", "", "listen address for HTTP profiling and instrumentation server") flag.DurationVar(&flags.probe.publishInterval, "probe.publish.interval", 3*time.Second, "publish (output) interval") flag.DurationVar(&flags.probe.spyInterval, "probe.spy.interval", time.Second, "spy (scan) interval")