Skip to content

Commit

Permalink
Merge pull request #5397 from r-vasquez/fix-flag-rp-start
Browse files Browse the repository at this point in the history
rpk: avoid transmuting CLI args without equal sign
  • Loading branch information
twmb committed Jul 19, 2022
2 parents aadd101 + 1cb2d2b commit 9f0077c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/go/rpk/pkg/cli/cmd/redpanda/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ func parseFlags(flags []string) map[string]string {

if i == len(flags)-1 {
// We've reached the last element, so it's a single flag
parsed[trimmed] = "true"
parsed[trimmed] = ""
continue
}

Expand All @@ -852,7 +852,7 @@ func parseFlags(flags []string) map[string]string {
// boolean flag
next := flags[i+1]
if strings.HasPrefix(next, "-") {
parsed[trimmed] = "true"
parsed[trimmed] = ""
continue
}

Expand Down

0 comments on commit 9f0077c

Please sign in to comment.