Debian Codegraph @

test_cmd/fmt_help.golden.stdout

raw
1 Jsonnet reformatter v0.22.0
2
3 jsonnetfmt {<option>} { <filename> }
4
5 Available options:
6 -h / --help This message
7 -e / --exec Treat filename as code
8 -o / --output-file <file> Write to the output file rather than stdout
9 -i / --in-place Update the Jsonnet file(s) in place.
10 --test Exit with failure if reformatting changed the file(s).
11 -n / --indent <n> Number of spaces to indent by (default 2, 0 means no change)
12 --max-blank-lines <n> Max vertical spacing, 0 means no change (default 2)
13 --string-style <d|s|l> Enforce double, single (default) quotes or 'leave'
14 --comment-style <h|s|l> # (h), // (s)(default), or 'leave'; never changes she-bang
15 --[no-]pretty-field-names Use syntax sugar for fields and indexing (on by default)
16 --[no-]pad-arrays [ 1, 2, 3 ] instead of [1, 2, 3]
17 --[no-]pad-objects { x: 1, y: 2 } instead of {x: 1, y: 2} (on by default)
18 --[no-]sort-imports Sorting of imports (on by default)
19 --debug-desugaring Unparse the desugared AST without executing it
20 --version Print version
21
22 In all cases:
23 <filename> can be - (stdin)
24 Multichar options are expanded e.g. -abc becomes -a -b -c.
25 The -- option suppresses option processing for subsequent arguments.
26 Note that since filenames and jsonnet programs can begin with -, it is advised to
27 use -- if the argument is unknown, e.g. jsonnet -- "$FILENAME".