Skip to content

Commit

Permalink
feat: CompileOnly option merge (#175)
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy authored Oct 31, 2023
1 parent 1f58d20 commit 25d679a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/kcl/opt.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,12 @@ func (p *Option) Merge(opts ...Option) *Option {
if opt.Verbose > 0 {
p.Verbose = opt.Verbose
}

if opt.CompileOnly {
p.CompileOnly = opt.CompileOnly
}
if opt.Debug != 0 {
p.Debug = opt.Debug
}

if opt.SortKeys {
p.SortKeys = opt.SortKeys
}
Expand Down

0 comments on commit 25d679a

Please sign in to comment.