2021-08-28 21:07:57 +03:00
|
|
|
|
$ fq -n options
|
|
|
|
|
{
|
|
|
|
|
"addrbase": 16,
|
2021-09-07 00:42:05 +03:00
|
|
|
|
"arg": [],
|
|
|
|
|
"argjson": [],
|
2021-08-30 13:51:42 +03:00
|
|
|
|
"arraytruncate": 50,
|
2021-08-28 21:07:57 +03:00
|
|
|
|
"bitsformat": "snippet",
|
|
|
|
|
"bytecolors": "0-0xff=brightwhite,0=brightblack,32-126:9-13=white",
|
|
|
|
|
"color": false,
|
|
|
|
|
"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",
|
|
|
|
|
"compact": false,
|
2021-09-01 20:53:12 +03:00
|
|
|
|
"decode_format": "probe",
|
2021-08-28 21:07:57 +03:00
|
|
|
|
"decode_progress": false,
|
|
|
|
|
"depth": 0,
|
|
|
|
|
"displaybytes": 16,
|
2021-09-01 20:53:12 +03:00
|
|
|
|
"expr": "options",
|
|
|
|
|
"expr_eval_path": "arg",
|
2021-08-28 21:07:57 +03:00
|
|
|
|
"expr_file": null,
|
2021-09-01 20:53:12 +03:00
|
|
|
|
"filenames": [
|
|
|
|
|
"-"
|
|
|
|
|
],
|
2021-08-28 21:07:57 +03:00
|
|
|
|
"include_path": null,
|
|
|
|
|
"join_string": "\n",
|
|
|
|
|
"linebytes": 16,
|
|
|
|
|
"null_input": true,
|
|
|
|
|
"raw_output": false,
|
|
|
|
|
"raw_string": false,
|
2021-09-07 00:42:05 +03:00
|
|
|
|
"rawfile": [],
|
2021-08-28 21:07:57 +03:00
|
|
|
|
"repl": false,
|
2021-09-01 20:53:12 +03:00
|
|
|
|
"show_formats": false,
|
|
|
|
|
"show_help": false,
|
|
|
|
|
"show_options": false,
|
2021-08-28 21:07:57 +03:00
|
|
|
|
"sizebase": 10,
|
|
|
|
|
"slurp": false,
|
2021-09-01 16:01:13 +03:00
|
|
|
|
"string_input": false,
|
2021-08-28 21:07:57 +03:00
|
|
|
|
"unicode": false,
|
|
|
|
|
"verbose": false
|
|
|
|
|
}
|
2021-08-26 16:38:49 +03:00
|
|
|
|
$ fq -o addrbase=10 -n options.addrbase
|
|
|
|
|
10
|
|
|
|
|
$ fq -o addrbase=true -n options.addrbase
|
|
|
|
|
16
|
2021-08-30 13:51:42 +03:00
|
|
|
|
$ fq -o arraytruncate=10 -n options.arraytruncate
|
|
|
|
|
10
|
|
|
|
|
$ fq -o arraytruncate=true -n options.arraytruncate
|
|
|
|
|
50
|
2021-08-26 16:38:49 +03:00
|
|
|
|
$ fq -o bitsformat=base64 -n options.bitsformat
|
|
|
|
|
"base64"
|
|
|
|
|
$ fq -o bytecolors=0-0xff=red -n options.bytecolors
|
|
|
|
|
"0-0xff=red"
|
|
|
|
|
$ fq -o color=10 -n options.color
|
|
|
|
|
[33mtrue[m
|
|
|
|
|
$ fq -o color=true -n options.color
|
|
|
|
|
[33mtrue[m
|
|
|
|
|
$ fq -o colors=number=red -n options.colors
|
|
|
|
|
"number=red"
|
|
|
|
|
$ fq -o compact=true -n options.compact
|
|
|
|
|
true
|
|
|
|
|
$ fq -o compact=aaa -n options.compact
|
|
|
|
|
false
|
|
|
|
|
$ fq -o decode_progress=false -n options.decode_progress
|
|
|
|
|
false
|
|
|
|
|
$ fq -o decode_progress=aaa -n options.decode_progress
|
|
|
|
|
false
|
|
|
|
|
$ fq -o depth=10 -n options.depth
|
|
|
|
|
10
|
|
|
|
|
$ fq -o depth=true -n options.depth
|
|
|
|
|
0
|
|
|
|
|
$ fq -o displaybytes=10 -n options.displaybytes
|
|
|
|
|
10
|
|
|
|
|
$ fq -o displaybytes=true -n options.displaybytes
|
|
|
|
|
16
|
|
|
|
|
$ fq -o expr_file=test.jq -n options.expr_file
|
2021-09-01 20:53:12 +03:00
|
|
|
|
exitcode: 2
|
2021-08-26 16:38:49 +03:00
|
|
|
|
stderr:
|
|
|
|
|
error: test.jq: file not found
|
|
|
|
|
$ fq -o include_path=path -n options.include_path
|
|
|
|
|
"path"
|
|
|
|
|
$ fq -o join_string=aaa\n -n options.join_string
|
|
|
|
|
"aaa\n"aaa
|
|
|
|
|
$ fq -o linebytes=true -n options.linebytes
|
|
|
|
|
16
|
|
|
|
|
$ fq -o null_input=true -n options.null_input
|
|
|
|
|
true
|
|
|
|
|
$ fq -o null_input=aaa -n options.null_input
|
|
|
|
|
true
|
|
|
|
|
$ fq -o raw_output=true -n options.raw_output
|
|
|
|
|
true
|
|
|
|
|
$ fq -o raw_output=aaa -n options.raw_output
|
|
|
|
|
false
|
|
|
|
|
$ fq -o raw_string=true -n options.raw_string
|
|
|
|
|
true
|
|
|
|
|
$ fq -o raw_string=aa -n options.raw_string
|
|
|
|
|
false
|
|
|
|
|
$ fq -o repl=true -n options.repl
|
|
|
|
|
boolean> ^D
|
|
|
|
|
$ fq -o sizebase=10 -n options.sizebase
|
|
|
|
|
10
|
|
|
|
|
$ fq -o sizebase=aaa -n options.sizebase
|
|
|
|
|
10
|
2021-09-01 19:30:26 +03:00
|
|
|
|
$ fq -o slurp=true -n options.slurp
|
2021-08-26 16:38:49 +03:00
|
|
|
|
true
|
|
|
|
|
$ fq -o slurp=aaa -n options.slurp
|
|
|
|
|
false
|
2021-09-01 19:30:26 +03:00
|
|
|
|
$ fq -o string_input=true -n options.string_input
|
|
|
|
|
true
|
|
|
|
|
$ fq -o string_input=aaa -n options.string_input
|
|
|
|
|
false
|
2021-08-26 16:38:49 +03:00
|
|
|
|
$ fq -o unicode=true -n options.unicode
|
|
|
|
|
true
|
|
|
|
|
$ fq -o unicode=aaa -n options.unicode
|
|
|
|
|
false
|
|
|
|
|
$ fq -o verbose=true -n options.verbose
|
|
|
|
|
true
|
|
|
|
|
$ fq -o verbose=aaa -n options.verbose
|
|
|
|
|
false
|