From 67243d64e07807e32f6165eecda9d2774163187e Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Tue, 22 Sep 2015 10:44:31 -0700 Subject: [PATCH] command: use an empty config instead of default config for cli options --- command/agent/command.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/command/agent/command.go b/command/agent/command.go index 5ae321f5d..3ac8aa12b 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -51,7 +51,13 @@ func (c *Command) readConfig() *Config { var dev bool var configPath []string - cmdConfig := DefaultConfig() + // Make a new, empty config. + cmdConfig := &Config{ + Atlas: &AtlasConfig{}, + Client: &ClientConfig{}, + Ports: &Ports{}, + Server: &ServerConfig{}, + } flags := flag.NewFlagSet("agent", flag.ContinueOnError) flags.Usage = func() { c.Ui.Error(c.Help()) }