From aa1d88b43416470c402af6344fc840313c5717cc Mon Sep 17 00:00:00 2001 From: peefy Date: Mon, 11 Mar 2024 21:19:22 +0800 Subject: [PATCH] feat: add debug option Signed-off-by: peefy --- pkg/options/run.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/options/run.go b/pkg/options/run.go index 7439d65..42f3798 100644 --- a/pkg/options/run.go +++ b/pkg/options/run.go @@ -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))