-
Notifications
You must be signed in to change notification settings - Fork 603
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
input string beginning with "-" parsed as option #216
Comments
Maybe all that can be done is to document the After giving it some thought, trying to do what coreutils echo and some others do ( |
On many systems' command line input, |
@PhilterPaper That’s not how it works either – the program will just see the string The |
That's why I added the caveat often when talking about command line strings with a leading "-". It's going to be handled by the application, not by the OS, and it may or may not see the "escape". As an example of where this does work, see "grep" (at least, the Windows implementation). A formal end-of-options marker, if implemented, would be the proper way to do it (and is not a "workaround"). |
Tested with similar results on 3.4.4 and 4.1.1.
qrencode -t UTF8 -o - "-test-" Invalid image type: est-
Two dashes, treated as long option:
Work-around:
--
indicates end of optionsqrencode -t UTF8 -o - -- "--test--" █████████████████████████████ █████████████████████████████ ████ ▄▄▄▄▄ █▄ ▄ ▄█ ▄▄▄▄▄ ████ ████ █ █ ██ ▀██ █ █ ████ ████ █▄▄▄█ ███▄▀ █ █▄▄▄█ ████ ████▄▄▄▄▄▄▄█ ▀ ▀ █▄▄▄▄▄▄▄████ ████ ▄▀ █▄█▀ ▄█ ▀▄██▀██▄████ ████ ▀█▄▄▄█ ▀█▄▄ ▀█ ▀▄████ ████▄██▄█▄▄▄▀▄▀▀▀▄▄█▀▀▀▀█████ ████ ▄▄▄▄▄ ██▄ ▀ ▄▄ ▀ ▄▀████ ████ █ █ █ ▀▄ █▄▀█▄▀██████ ████ █▄▄▄█ █▀█▀██▀ ▀ ▀ ████ ████▄▄▄▄▄▄▄█▄█▄▄███▄▄▄███████ █████████████████████████████ █████████████████████████████
The text was updated successfully, but these errors were encountered: