! exec cue export x.cue -out cue
cmp stderr expect-stderr

! exec cue export -out cue
cmp stderr expect-stderr

! exec cue export -out x.cue
cmp stderr expect-stderr

-- expect-stderr --
no encoding specified for file "ut"
-- x.cue --
a: 1