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...)