Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Jul 20, 2023
1 parent 917c8fe commit 2adfa37
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 @@ -227,7 +227,8 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
}
ms.Log.Debug.Printf("using theme %s (ID: %d)", match.Name, *themeFlag)

// If not set by user, nil, so that diagramConfig can take precedent
// If flag is not explicitly set by user, set to nil.
// Later, configs from D2 code will only overwrite if they weren't explicitly set by user
flagSet := make(map[string]struct{})
ms.Opts.Flags.Visit(func(f *pflag.Flag) {
flagSet[f.Name] = struct{}{}
Expand Down

0 comments on commit 2adfa37

Please sign in to comment.