Skip to content

Commit

Permalink
feat: add debug option
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Mar 11, 2024
1 parent f104b00 commit aa1d88b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/options/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ func CompileOptionFromCli(o *RunOptions) *opt.CompileOptions {
opts.Merge(kcl.WithSelectors(o.PathSelectors...))
}

// --debug, -d
if o.Debug {
opts.Debug = 1
}

// --disable_none, -n
opts.Merge(kcl.WithDisableNone(o.DisableNone))

Expand Down

0 comments on commit aa1d88b

Please sign in to comment.