diff --git a/README.md b/README.md index 756f2960..f6b1cf4b 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,7 @@ Flags: -M, --no-colors force print with no colors -N, --no-doc Don't print document separators (---) -n, --null-input Don't read input, simply evaluate the expression given. Useful for creating yaml docs from scratch. + -P, --prettyPrint pretty print, shorthand for '... style = ""' -j, --tojson output as json. Set indent to 0 to print json in one line. -v, --verbose verbose mode -V, --version Print version information and quit diff --git a/pkg/yqlib/operator_style_test.go b/pkg/yqlib/operator_style_test.go index 85e9dd42..d8ca575a 100644 --- a/pkg/yqlib/operator_style_test.go +++ b/pkg/yqlib/operator_style_test.go @@ -87,7 +87,7 @@ e: >- }, { description: "Pretty print", - subdescription: "Set empty (default) quote style, note the usage of `...` to match keys too.", + subdescription: "Set empty (default) quote style, note the usage of `...` to match keys too. Note that there is a `--prettyPrint/-P` short flag for this.", document: `{a: cat, "b": 5, 'c': 3.2, "e": true}`, expression: `... style=""`, expected: []string{