This commit is contained in:
chaos 2024-11-10 08:24:51 +00:00
parent 6ae141e118
commit aa714f405f
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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"],