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