Add --config option printing ./configure options used

This commit is contained in:
Nicolas Williams authored and Nico Williams committed 2023-08-19 17:40:08 -05:00
1 parent 7d64381016
commit 583e4a2718
4 files changed
+56 -4

No files matched your search

Generated
+12
View File
@@ -235,6 +235,12 @@ Windows users using WSL, MSYS2, or Cygwin, should use this option when using a n
Output the jq version and exit with zero\.
.
.TP
\fB\-\-build\-configuration\fR:
.
.IP
Output the build configuration of jq and exit with zero\. This output has no supported format or structure and may change without notice in future releases\.
.
.TP
\fB\-\-help\fR / \fB\-h\fR:
.
.IP
@@ -2146,6 +2152,12 @@ jq \'walk( if type == "object" then with_entries( \.key |= sub( "^_+"; "") ) els
.
.IP "" 0
.
.SS "$JQ_BUILD_CONFIGURATION"
This builtin binding shows the jq executable\'s build configuration\. Its value has no particular format, but it can be expected to be at least the \fB\./configure\fR command\-line arguments, and may be enriched in the future to include the version strings for the build tooling used\.
.
.P
Note that this can be overriden in the command\-line with \fB\-\-arg\fR and related options\.
.
.SS "$ENV, env"
\fB$ENV\fR is an object representing the environment variables as set when the jq program started\.
.