$ xclip --help xclip: --help: No such file or directory $ xclip -z xclip: -z: No such file or directory In all such cases also say 'use -h to see usage'.
Unfortunately, this cannot be fixed without breaking backwards compatibility and I don't want to speculate where xclip might be used. The problem is that currently you can just use filenames starting with a dash, but if you were to recognize invalid options, such filenames would have to be seperated by --. I am currently considering creating a modern replacement for xclip that does not use the X argument parsing style.
MG> I am currently considering creating a modern replacement for xclip Say, maybe it could even no need X around... becoming a general paste buffer one could read and write to/from, if X is not detected...