From 005b27d4648797658c33c8554f8df655962e2ca7 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Fri, 30 Dec 2022 16:25:51 -0800 Subject: [PATCH] exec correctly --- d2plugin/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2plugin/exec.go b/d2plugin/exec.go index b004b5aff..acb8a9618 100644 --- a/d2plugin/exec.go +++ b/d2plugin/exec.go @@ -126,7 +126,7 @@ func (p execPlugin) Layout(ctx context.Context, g *d2graph.Graph) error { args := []string{"layout"} for k, v := range p.opts { - args = append(args, k, v) + args = append(args, fmt.Sprintf("--%s", k), v) } cmd := exec.CommandContext(ctx, p.path, args...)