diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-31 13:18:50 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-31 13:18:50 (GMT) |
commit | 1e2e49754634da258811d430a13f86f85a744e61 (patch) | |
tree | a4c301fdd3ea1249cae4f50df2b4270fc7918e8a | |
parent | 774e626114dace5435f5f21dc9957d5da996b3bb (diff) |
all command line arguments can now be set using environment variables
-rw-r--r-- | conf.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -68,15 +68,15 @@ func (self *Config) readConfigFile() error { return nil } -func NewConfig(configfile, rdxportEndpoint, tempDir, localFetchDir *string) (conf *Config, err error) { +func NewConfig(configfile, rdxportEndpoint, tempDir, localFetchDir string) (conf *Config, err error) { conf = new(Config) - conf.configfile = *configfile + conf.configfile = configfile if err = conf.readConfigFile(); err != nil { return } - conf.RDXportEndpoint = *rdxportEndpoint - conf.TempDir = *tempDir - conf.LocalFetchDir = *localFetchDir + conf.RDXportEndpoint = rdxportEndpoint + conf.TempDir = tempDir + conf.LocalFetchDir = localFetchDir conf.ImportParamDefaults.Channels = 2 conf.ImportParamDefaults.NormalizationLevel = -12 conf.ImportParamDefaults.AutotrimLevel = 0 |