Skip to content

Commit 568c25a

Browse files
author
Zoe Lee
committed
fix(cmd/start): detect force-bin-dir flag variants
1 parent c821b8e commit 568c25a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/start.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"os/exec"
99
"path/filepath"
1010
"strconv"
11+
"strings"
1112

1213
log "github.com/sirupsen/logrus"
1314
"github.com/spf13/cobra"
@@ -38,7 +39,7 @@ func start() {
3839
childArgs := append([]string{"server"}, os.Args[2:]...)
3940
hasForceBinDir := false
4041
for _, arg := range childArgs {
41-
if arg == "--force-bin-dir" {
42+
if arg == "--force-bin-dir" || strings.HasPrefix(arg, "--force-bin-dir=") {
4243
hasForceBinDir = true
4344
break
4445
}

0 commit comments

Comments
 (0)