diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-07 15:55:35 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-08 00:28:37 (GMT) |
commit | 6e5d14f4a2189dbc0f0404c398d11878e356ecd7 (patch) | |
tree | 23ed10d556a8145537ac40af64873a3790913c3b /src/helsinki.at/rhimportd/rhimportd.go | |
parent | 25928481ff6d29db10380209feb24775eb83f6c4 (diff) |
major refactoring of base structure
Diffstat (limited to 'src/helsinki.at/rhimportd/rhimportd.go')
-rw-r--r-- | src/helsinki.at/rhimportd/rhimportd.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helsinki.at/rhimportd/rhimportd.go b/src/helsinki.at/rhimportd/rhimportd.go index c1af87e..03d0340 100644 --- a/src/helsinki.at/rhimportd/rhimportd.go +++ b/src/helsinki.at/rhimportd/rhimportd.go @@ -36,6 +36,7 @@ func main() { web_addr_s := flag.String("web-addr", ":4000", "addr:port to listen on, default: ':4000'") rdconf_s := flag.String("rdconf", "/etc/rd.conf", "path to the Rivendell config file, default: '/etc/rd.conf'") rdxport_url_s := flag.String("rdxport-url", "http://localhost/rd-bin/rdxport.cgi", "the url to the Rivendell web-api, default: 'http://localhost/rd-bin/rdxport.cgi'") + temp_dir_s := flag.String("tmp-dir", "/tmp", "path to temporary files, default: '/tmp'") help := flag.Bool("help", false, "show usage") flag.Parse() @@ -44,7 +45,7 @@ func main() { return } - conf, err := rhimport.NewConfig(rdconf_s, rdxport_url_s) + conf, err := rhimport.NewConfig(rdconf_s, rdxport_url_s, temp_dir_s) if err != nil { rhl.Println("Error reading configuration:", err) return |