update
This commit is contained in:
parent
6ae141e118
commit
aa714f405f
|
@ -3,11 +3,11 @@ def parseArgBool:
|
||||||
if ($value | type) == "boolean" then
|
if ($value | type) == "boolean" then
|
||||||
$value
|
$value
|
||||||
elif
|
elif
|
||||||
$value == "true" or $value == "on" or $value == "no"
|
$value == "true" or $value == "on" or $value == "yes"
|
||||||
then
|
then
|
||||||
true
|
true
|
||||||
elif
|
elif
|
||||||
$value == "false" or $value == "off" or $value == "yes"
|
$value == "false" or $value == "off" or $value == "no"
|
||||||
then
|
then
|
||||||
false
|
false
|
||||||
else
|
else
|
||||||
|
|
|
@ -153,7 +153,7 @@ def main:
|
||||||
($parsedArgs | .nonArgs |= $parsedArgs.nonArgs[1:]) as $parsedArgs |
|
($parsedArgs | .nonArgs |= $parsedArgs.nonArgs[1:]) as $parsedArgs |
|
||||||
|
|
||||||
if gojqExtendedLib::checkSupported then
|
if gojqExtendedLib::checkSupported then
|
||||||
if $parsedArgs.longArgs | has("export-file") then
|
if $parsedArgs.longArgs["export-file"] then
|
||||||
$parsedArgs.longArgs["export-file"]
|
$parsedArgs.longArgs["export-file"]
|
||||||
else
|
else
|
||||||
$ARGS.named["exportFileName"]
|
$ARGS.named["exportFileName"]
|
||||||
|
@ -164,8 +164,8 @@ def main:
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if $parsedArgs.longArgs | has("export-file") then
|
if $parsedArgs.longArgs | has("export-file") then
|
||||||
debug("--export-file was provided but this version of jq doesn't support reading files" +
|
"--export-file was provided but this version of jq doesn't support reading files" +
|
||||||
"using EXPORT_FILE instead")
|
"using EXPORT_FILE instead\n" | stderr
|
||||||
end |
|
end |
|
||||||
{
|
{
|
||||||
name: $ARGS.named["exportFileName"],
|
name: $ARGS.named["exportFileName"],
|
||||||
|
|
Loading…
Reference in a new issue