diff --git a/cmd/parse.go b/cmd/parse.go index 2bdd1eb..4434218 100644 --- a/cmd/parse.go +++ b/cmd/parse.go @@ -54,8 +54,10 @@ func parse() *O { if err != nil { log.Fatalf("Error parsing usage. Error: %s\n", err.Error()) } - o := &O{ - jsonfile: args["-j"].(string), + o := &O{} + + if jsonfile, ok := args["-j"].(string); ok { + o.jsonfile = jsonfile } var lines []string