mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
command: use an empty config instead of default config for cli options
This commit is contained in:
@@ -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()) }
|
||||
|
||||
Reference in New Issue
Block a user