aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_init.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/c_init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/c_init.go b/src/c_init.go
index beeb80d..57f8b19 100644
--- a/src/c_init.go
+++ b/src/c_init.go
@@ -64,6 +64,7 @@ type HardOpts struct {
GPG string `yaml:"gpg"`
Perc bool `yaml:"percent"`
Term string `yaml:"terminal"`
+ file string
}
// this function recurses into the specified root directory in order to load
@@ -161,6 +162,7 @@ func c_get_options(dir string, load_err *[]error) HardOpts {
return DEFAULT_OPTS
}
opts, err := c_parse_opts(file)
+ opts.file = file
if err != nil {
*load_err = append(*load_err, err)
return DEFAULT_OPTS