Skip to content

Commit 10e2bb9

Browse files
More strict
1 parent 375eb24 commit 10e2bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/aem/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (c *CLI) onStart() {
116116
c.outputFormat = fmtx.Text
117117
}
118118
if c.outputQuery != "" && c.outputFormat == fmtx.Text {
119-
c.outputFormat = fmtx.YML
119+
log.Fatalf("unsupported CLI output format detected '%s'! when query is provided supported ones are: %s", c.outputFormat, strings.Join([]string{fmtx.JSON, fmtx.YML}, ", "))
120120
}
121121

122122
noColor := cv.GetBool("output.no_color")

0 commit comments

Comments
 (0)