Skip to content

Commit aa1d88b

Browse files
committed
feat: add debug option
Signed-off-by: peefy <[email protected]>
1 parent f104b00 commit aa1d88b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/options/run.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ func CompileOptionFromCli(o *RunOptions) *opt.CompileOptions {
274274
opts.Merge(kcl.WithSelectors(o.PathSelectors...))
275275
}
276276

277+
// --debug, -d
278+
if o.Debug {
279+
opts.Debug = 1
280+
}
281+
277282
// --disable_none, -n
278283
opts.Merge(kcl.WithDisableNone(o.DisableNone))
279284

0 commit comments

Comments
 (0)