diff --git a/acceptance_tests/output-format.sh b/acceptance_tests/output-format.sh index 4d9c3f1a..a36290b5 100755 --- a/acceptance_tests/output-format.sh +++ b/acceptance_tests/output-format.sh @@ -37,10 +37,32 @@ EOL } EOM - X=$(./yq e -o=json test.yml) + X=$(./yq e --output-format=json test.yml) assertEquals "$expected" "$X" - X=$(./yq ea -o=json test.yml) + X=$(./yq ea --output-format=json test.yml) + assertEquals "$expected" "$X" +} + +testOutputJsonShort() { + cat >test.yml <test.yml <