Updated docs

This commit is contained in:
Mike Farah 2020-12-28 11:57:20 +11:00
parent 0328cfd619
commit 94a563dfd8
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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{