aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_init.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-02-13 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-02-13 20:20:20 +0100
commit4aa83606250d56398d5dd6aa664898ac759532ae (patch)
treeeb592bd0f2dbd8e5707d5a2f0c7b60dc535efa8f /src/c_init.go
parentbro is safe (diff)
downloadhardflip-4aa83606250d56398d5dd6aa664898ac759532ae.tar.gz
hardflip-4aa83606250d56398d5dd6aa664898ac759532ae.tar.bz2
hardflip-4aa83606250d56398d5dd6aa664898ac759532ae.tar.xz
hardflip-4aa83606250d56398d5dd6aa664898ac759532ae.tar.zst
hardflip-4aa83606250d56398d5dd6aa664898ac759532ae.zip
cool
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