--help not working on windows powershell, cmd or gitbash
Describe the bug From CMD:
C:\Users\edgeb1>copyq --help
<no output>
From powershell
➜ copyq --help
<no output>
From Gitbash
edgeb1@RSCMW3512 MINGW64 ~
$ copyq --help
<no output>
To Reproduce
- Run
copyq --helpfrom any available shell.
Expected behavior Should display help options
Version, OS and Environment
that said, windows 11, copyq 9.1.0
-
Application Version (for example 7.1.0) 9.1.0
-
OS (for example Windows 11, Ubuntu 22.04, macOS Sonoma 14.4) windows 11
-
Desktop environment, window manager (if applicable) windows 11
Additional context
I am able to run copyq --add XXX to add things to the clipboard.
I just get no output from any copyq shell commands
I found this: https://github.com/hluk/CopyQ/issues/2852#issuecomment-2417234014 stating:
Unfortunately, this is a known problem on Windows (I don't see a way to fix this).
See: https://copyq.readthedocs.io/en/latest/known-issues.html#on-windows-copyq-does-not-print-anything-on-console
But the documentation link is sorely lacking.
How is this supposed to fix it?
This has no effect in GitBash, or CMD
Ref:
- https://stackoverflow.com/questions/21719609/why-do-i-get-no-output-from-console-when-running-from-command-line
- https://github.com/hluk/CopyQ/issues/349
- https://github.com/hluk/CopyQ/issues/1182
- https://github.com/hluk/CopyQ/issues/499
- https://github.com/hluk/CopyQ/issues/2376
- https://github.com/hluk/CopyQ/issues/2852
Is this not indicative of needing to change the mechanism used to print to stdout for windows targets? I have not looked at the code, but there's usually half a dozen abstractions one can use for stdout processing, no?
run this .\copyq.exe --help | echo
buffer error with windows if it works.
Yes, that works:
C:\Program Files\CopyQ>.\copyq.exe --help | echo
ECHO is on.