diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go index 5e06226..e7adaab 100644 --- a/main.go +++ b/main.go @@ -63,10 +63,14 @@ func main() { }`) os.Exit(0) } - //read the config file into a byte array + + // if the extended switch isn't the default value + // and if the extended switch isn't empty if *jsonlocationlong != "config.json" && *jsonlocationlong != "" { *jsonlocation = *jsonlocationlong } + + //read the config file into a byte array jsonconf, err := ioutil.ReadFile(*jsonlocation) checkerr(err) |