[m-rev.] diff: use io.write_prefixed_lines in more places

Zoltan Somogyi zoltan.somogyi at runbox.com
Mon Sep 4 11:08:00 AEST 2023


On 2023-09-04 11:03 +10:00 AEST, "Julien Fischer" <jfischer at opturion.com> wrote:
>>> Because other parts of the system, e.g. mmc, already support that
>>> synonym and because that is the option commonly used on Windows.
>>
>> Fair enough, I didn't know that.
>>
>> I think -? is a bad idea on Unix where ? is a special character in
>> shells so needs to be quoted (yes, you can get away with not quoting
>> unless the directory happens to contain a file name that would match,
>> depending on the shell). We don't follow any other Windows command
>> line conventions so I don't think that's important.
>>
>> I suggest we not propagate -? to more parts of the system.
>> For programs where we have accepted -?, we could remove it or
>> undocument it.
> 
> I'm fine with removing it; my main concern here is consistency between
> the various programs.

There is no reason why cannot support --help and -?.
That gives both Unix/Linux and Windows users what they are used to.
There is nothing *forcing* Unix users to use -?.

Not supporting the option that people are used to would violate
the law of least astonishment.

Zoltan.


More information about the reviews mailing list