Skip to content

Commit

Permalink
Fix interface issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsteele committed Apr 6, 2016
1 parent b58f462 commit e42efdb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e42efdb

Please sign in to comment.