summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimport
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-31 13:18:50 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-31 13:18:50 (GMT)
commit26f2b95168cab463e094a13991b8a486a68e684f (patch)
tree1ca60930d97b84edf28e88ceddd5b8806735b60e /src/helsinki.at/rhimport
parentec5bc3996e3abbdb56494ccb2b4115d976022dcc (diff)
all command line arguments can now be set using environment variables
Diffstat (limited to 'src/helsinki.at/rhimport')
-rw-r--r--src/helsinki.at/rhimport/conf.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helsinki.at/rhimport/conf.go b/src/helsinki.at/rhimport/conf.go
index d628563..59308a9 100644
--- a/src/helsinki.at/rhimport/conf.go
+++ b/src/helsinki.at/rhimport/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