mirror of
https://github.com/wader/fq.git
synced 2024-12-23 21:31:33 +03:00
interp,doc: Add -R raw string slurp hint to -s help
This commit is contained in:
parent
75a6873508
commit
4eae7ffd99
@ -283,4 +283,4 @@ Licenses of direct dependencies:
|
||||
- golang/snappy https://github.com/golang/snappy/blob/master/LICENSE (BSD)
|
||||
- github.com/BurntSushi/toml https://github.com/BurntSushi/toml/blob/master/COPYING (MIT)
|
||||
- gopkg.in/yaml.v3 https://github.com/go-yaml/yaml/blob/v3/LICENSE (MIT)
|
||||
- github.com/creasty/defaults https://github.com/creasty/defaults/blob/master/LICENSE (MIT)
|
||||
- github.com/creasty/defaults https://github.com/creasty/defaults/blob/master/LICENSE (MIT)
|
||||
|
@ -470,7 +470,7 @@ def _opt_cli_opts:
|
||||
"slurp": {
|
||||
short: "-s",
|
||||
long: "--slurp",
|
||||
description: "Read (slurp) all inputs into an array",
|
||||
description: "Slurp all inputs into an array or string (-Rs)",
|
||||
bool: true
|
||||
},
|
||||
"show_version": {
|
||||
|
2
pkg/interp/testdata/args.fqtest
vendored
2
pkg/interp/testdata/args.fqtest
vendored
@ -35,7 +35,7 @@ Example usages:
|
||||
--raw-input,-R Read raw input strings (don't decode)
|
||||
--raw-output,-r Raw string output (without quotes)
|
||||
--repl,-i Interactive REPL
|
||||
--slurp,-s Read (slurp) all inputs into an array
|
||||
--slurp,-s Slurp all inputs into an array or string (-Rs)
|
||||
--version,-v Show version
|
||||
$ fq -i
|
||||
null> ^D
|
||||
|
Loading…
Reference in New Issue
Block a user