From 1e2e49754634da258811d430a13f86f85a744e61 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 31 Dec 2015 14:18:50 +0100 Subject: all command line arguments can now be set using environment variables diff --git a/conf.go b/conf.go index d628563..59308a9 100644 --- a/conf.go +++ b/conf.go @@ -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 -- cgit v0.10.2