Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized options --nul-output, --binary on Windows #2510

Open
apsen-github opened this issue Dec 20, 2022 · 5 comments
Open

Unrecognized options --nul-output, --binary on Windows #2510

apsen-github opened this issue Dec 20, 2022 · 5 comments
Labels

Comments

@apsen-github
Copy link

apsen-github commented Dec 20, 2022

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
@itchyny itchyny added the windows label Jun 3, 2023
@calestyo
Copy link
Contributor

also happens on Linux (where IMO the options should just be ignored)

@calestyo
Copy link
Contributor

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?

@apsen-github
Copy link
Author

apsen-github commented May 30, 2024

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.

@calestyo
Copy link
Contributor

--nul-output is now --raw-output0

So do you think this issue can be closed?

@apsen-github
Copy link
Author

apsen-github commented May 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants