Skip to content

Commit

Permalink
ignore invalid debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Jul 29, 2023
1 parent 3b0939f commit 33e4df6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion d2cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
}
debugFlag, err := ms.Opts.Bool("DEBUG", "debug", "d", false, "print debug logs.")
if err != nil {
return err
ms.Log.Warn.Printf("Invalid DEBUG flag value ignored")
debugFlag = go2.Pointer(false)
}
imgCacheFlag, err := ms.Opts.Bool("IMG_CACHE", "img-cache", "", true, "in watch mode, images used in icons are cached for subsequent compilations. This should be disabled if images might change.")
if err != nil {
Expand Down

0 comments on commit 33e4df6

Please sign in to comment.