summaryrefslogtreecommitdiff
path: root/findConfig.go
diff options
context:
space:
mode:
Diffstat (limited to 'findConfig.go')
-rw-r--r--findConfig.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/findConfig.go b/findConfig.go
index 3586bad..aba8709 100644
--- a/findConfig.go
+++ b/findConfig.go
@@ -5,13 +5,15 @@ import "go.wit.com/log"
// retuns true if nothing was done
func findConfig() bool {
var done bool = false
- if argv.FindMine {
- findConfigMine()
- done = true
- }
- if argv.FindAll {
- findConfigAll()
- done = true
+ if argv.Find != nil {
+ if argv.Find.Mine {
+ findConfigMine()
+ done = true
+ }
+ if argv.Find.All {
+ findConfigAll()
+ done = true
+ }
}
if !done {
findConfigAll()