1$ fq -n options
2{
3  "addrbase": 16,
4  "arg": [],
5  "argjson": [],
6  "array_truncate": 50,
7  "bits_format": "snippet",
8  "byte_colors": "0-0xff=brightwhite,0=brightblack,32-126:9-13=white",
9  "color": false,
10  "colors": "array=white,dumpaddr=yellow,dumpheader=yellow+underline,error=brightred,false=yellow,index=white,null=brightblack,number=cyan,object=white,objectkey=brightblue,string=green,true=yellow,value=white",
11  "compact": false,
12  "decode_file": [],
13  "decode_format": "probe",
14  "decode_progress": false,
15  "depth": 0,
16  "display_bytes": 16,
17  "expr": "options",
18  "expr_eval_path": "arg",
19  "expr_file": null,
20  "filenames": [
21    null
22  ],
23  "include_path": null,
24  "join_string": "\n",
25  "line_bytes": 16,
26  "null_input": true,
27  "raw_file": [],
28  "raw_output": false,
29  "raw_string": false,
30  "repl": false,
31  "show_formats": false,
32  "show_help": false,
33  "sizebase": 10,
34  "slurp": false,
35  "string_input": false,
36  "unicode": false,
37  "verbose": false
38}
39$ fq -o addrbase=10 -n options.addrbase
4010
41$ fq -o addrbase=true -n options.addrbase
4216
43$ fq -o array_truncate=10 -n options.array_truncate
4410
45$ fq -o array_truncate=true -n options.array_truncate
4650
47$ fq -o bits_format=base64 -n options.bits_format
48"base64"
49$ fq -o byte_colors=0-0xff=red -n options.byte_colors
50"0-0xff=red"
51$ fq -o color=10 -n options.color
52true
53$ fq -o color=true -n options.color
54true
55$ fq -o colors=number=red -n options.colors
56"number=red"
57$ fq -o compact=true -n options.compact
58true
59$ fq -o compact=aaa -n options.compact
60false
61$ fq -n -o 'decode_file=[["a", "/test.mp3"]]' '$a | format'
62"mp3"
63$ fq -o decode_progress=false -n options.decode_progress
64false
65$ fq -o decode_progress=aaa -n options.decode_progress
66false
67$ fq -o depth=10 -n options.depth
6810
69$ fq -o depth=true -n options.depth
700
71$ fq -o display_bytes=10 -n options.display_bytes
7210
73$ fq -o display_bytes=true -n options.display_bytes
7416
75$ fq -n -o expr=123
76123
77$ fq -o expr_file=test.jq -n options.expr_file
78exitcode: 2
79stderr:
80error: open testdata/test.jq: no such file or directory
81$ fq -o 'filenames=["/test.mp3"]' format
82"mp3"
83$ fq -o include_path=path -n options.include_path
84"path"
85$ fq -o 'join_string=aaa\n' -n options.join_string
86"aaa\n"aaa
87$ fq -o line_bytes=true -n options.line_bytes
8816
89$ fq -o null_input=true -n options.null_input
90true
91$ fq -o null_input=aaa -n options.null_input
92true
93$ fq -o raw_output=true -n options.raw_output
94true
95$ fq -o raw_output=aaa -n options.raw_output
96false
97$ fq -o raw_string=true -n options.raw_string
98true
99$ fq -o raw_string=aa -n options.raw_string
100false
101$ fq -o repl=true -n options.repl
102boolean> ^D
103$ fq -o sizebase=10 -n options.sizebase
10410
105$ fq -o sizebase=aaa -n options.sizebase
10610
107$ fq -o slurp=true -n options.slurp
108true
109$ fq -o slurp=aaa -n options.slurp
110false
111$ fq -o string_input=true -n options.string_input
112true
113$ fq -o string_input=aaa -n options.string_input
114false
115$ fq -o unicode=true -n options.unicode
116true
117$ fq -o unicode=aaa -n options.unicode
118false
119$ fq -o verbose=true -n options.verbose
120true
121$ fq -o verbose=aaa -n options.verbose
122false
123$ fq -n "options | {display_bytes, line_bytes}"
124{
125  "display_bytes": 16,
126  "line_bytes": 16
127}
128$ _STDOUT_ISTERMINAL= fq -n  "options | {display_bytes, line_bytes}"
129{
130  "display_bytes": 16,
131  "line_bytes": 16
132}
133$ _STDOUT_WIDTH=160 _STDOUT_HEIGHT=40 fq -n  "options | {display_bytes, line_bytes}"
134{
135  "display_bytes": 20,
136  "line_bytes": 20
137}
138$ _STDOUT_ISTERMINAL= _STDOUT_WIDTH=160 _STDOUT_HEIGHT=40 fq -n  "options | {display_bytes, line_bytes}"
139{
140  "display_bytes": 16,
141  "line_bytes": 16
142}
143$ fq -in
144null> options | {display_bytes, line_bytes}
145{
146  "display_bytes": 16,
147  "line_bytes": 16
148}
149null> _STDOUT_WIDTH=160 _STDOUT_HEIGHT=40 options | {display_bytes, line_bytes}
150{
151  "display_bytes": 20,
152  "line_bytes": 20
153}
154null> ^D
155