jpegoptim
jpegoptim copied to clipboard
Rendered man page incorrectly displays command line switches
First of all, my locale is set to "en_US.UTF-8" if that makes a difference.
man jpegoptim
displays command line switches as Unicode HYPHEN rather than HYPHEN-MINUS. When copy-pasting a command from the rendered man page, it creates cryptic errors such as this:
Command:
jpegoptim ‐‐dest=./p file.jpg
Resulting error:
jpegoptim: file not found: ‐‐dest=./p
Looking at the documentation for "man", it appears that every '-' in jpegoptim.1 should be replaced with '\-'
This would would render the character '-' as HYPHEN-MINUS, allow copy-pasting of options without error. I'm kind of out of my element here, but I believe this is the problem and solution.
Thanks