Skip to content

Commit

Permalink
Merge pull request #25 from k1LoW/fix-debug
Browse files Browse the repository at this point in the history
Enabling debug prevents override
  • Loading branch information
k1LoW authored Mar 16, 2022
2 parents 808ea99 + f73e4bf commit 86b25e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion option.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ func Book(path string) Option {
}
bk.Steps = loaded.Steps
bk.stepKeys = loaded.stepKeys
bk.Debug = loaded.Debug
if !bk.Debug {
bk.Debug = loaded.Debug
}
bk.path = loaded.path
return nil
}
Expand Down

0 comments on commit 86b25e3

Please sign in to comment.