Bernhard Voelker wrote:
At least for 'yes', one could argument that the program should only care about the (GNU) long options --help and --version if they are the only argument, and take everything else as the string(s) to be output
Why is the situation different for 'yes' than for other commands? The GNU coding standards are clear that 'yes --help foo' should act like 'yes --help'.
https://www.gnu.org/prep/standards/html_node/_002d_002dhelp.html