Unrecognized options --nul-output, --binary on Windows
jq issues "Unknow option" when trying to pass either --nul-output or --binary to the executable.
C:\>jq --version
jq-1.6
C:\>jq --binary
/cygdrive/c/Programs/cygwin64/bin/jq: Unknown option --binary
Use /cygdrive/c/Programs/cygwin64/bin/jq --help for help with command-line options,
or see the jq manpage, or online docs at https://stedolan.github.io/jq
C:\>jq --nul-output
/cygdrive/c/Programs/cygwin64/bin/jq: Unknown option --nul-output
Use /cygdrive/c/Programs/cygwin64/bin/jq --help for help with command-line options,
or see the jq manpage, or online docs at https://stedolan.github.io/jq
C:\>jq-win --version
jq-1.6
C:\>jq-win --binary
C:\Software\utils\jq-win.exe: Unknown option --binary
Use C:\Software\utils\jq-win.exe --help for help with command-line options,
or see the jq manpage, or online docs at https://stedolan.github.io/jq
C:\>jq-win --nul-output
C:\Software\utils\jq-win.exe: Unknown option --nul-output
Use C:\Software\utils\jq-win.exe --help for help with command-line options,
or see the jq manpage, or online docs at https://stedolan.github.io/jq
also happens on Linux (where IMO the options should just be ignored)
I've just submitted #3131, but that only fixes --binary on non-windows (and at least form the code, I couldn't see that it was broken in Windows).
Same for --nul-output (which has been renamed in current versions).
@apsen-github Are you sure you had Windows builds and not e.g. Cygwin?
You could see from the trace that I had experienced that problem with both cygwin and stand-alone windows version.
Current windows version (1.7.1) does not complain about --binary and I do not remember what --nul-output was supposed to do...
PS Looking through the changelog I see that --binary has been added to windows version in 1.7 and in that version --raw-output0 has been introduced which is probably what --nul-output was for.
--nul-output is now --raw-output0
So do you think this issue can be closed?
I haven't tested the actual functionality it but it looks like it has been taken care of and also jq no longer complains about those options.
So feel free to close the issue.