Skip to content

Commit

Permalink
Fix output option broke with last release (#315)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Kämmerling <[email protected]>
  • Loading branch information
LKaemmerling authored Apr 6, 2021
1 parent 7969d5b commit b93bb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func validateOutputFlag(options []outputOption) func(cmd *cobra.Command, args []

for _, flagValue := range flagValues {
parts := strings.SplitN(flagValue, "=", 2)
if len(parts) != 2 {
if strings.HasPrefix(parts[0], "columns") && len(parts) != 2 {
return fmt.Errorf("invalid output option format")
}
if _, ok := validOptions[parts[0]]; !ok {
Expand Down

0 comments on commit b93bb4f

Please sign in to comment.