Remove outdated FIXME
This comment predates the addition of $ARGS in jq 1.6, so there was no way to access named arguments with an invalid identifier. Rather than forbid such names, update the manual to clarify.
This commit is contained in:
1 parent
7cac5e80ec
commit
eb9bdca296
3 files changed
+4
-4
No files matched your search
Generated
+2
-2
@@ -1,5 +1,5 @@
|
||||
.
|
||||
.TH "JQ" "1" "October 2024" "" ""
|
||||
.TH "JQ" "1" "November 2024" "" ""
|
||||
.
|
||||
.SH "NAME"
|
||||
\fBjq\fR \- Command\-line JSON processor
|
||||
@@ -181,7 +181,7 @@ Prepend \fBdirectory\fR to the search list for modules\. If this option is used
|
||||
This option passes a value to the jq program as a predefined variable\. If you run jq with \fB\-\-arg foo bar\fR, then \fB$foo\fR is available in the program and has the value \fB"bar"\fR\. Note that \fBvalue\fR will be treated as a string, so \fB\-\-arg foo 123\fR will bind \fB$foo\fR to \fB"123"\fR\.
|
||||
.
|
||||
.IP
|
||||
Named arguments are also available to the jq program as \fB$ARGS\.named\fR\.
|
||||
Named arguments are also available to the jq program as \fB$ARGS\.named\fR\. When the name is not a valid identifier, this is the only way to access it\.
|
||||
.
|
||||
.TP
|
||||
\fB\-\-argjson name JSON\-text\fR:
|
||||
|
||||
Reference in new issue
Block a user