Re: [PATCH] logger: do not show arguments of --socket-errors as optional in --help

Benno Schulenberg <[email protected]>
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
Op 29-01-2025 om 13:32 schreef Karel Zak:
> On Mon, Jan 27, 2025 at 12:08:25PM GMT, Benno Schulenberg wrote:
>> -	fputs(_("     --socket-errors[=<on|off|auto>]\n"
>> +	fputs(_("     --socket-errors on|off|auto\n"
>>   		"                          print connection errors when using Unix sockets\n"), out);
> 
> I don't have a strong opinion about it, but in other places we see
> something like:
> 
>     --socket-errors <mode>   print connection errors when using Unix sockets (on, off or auto)

When there are just a few possible argument values, I prefer to list
them directly after the option -- it saves having to interpret words
like "mode", and then looking for the possible values further down.
It also makes it a little less likely that translators mistakenly
translate these values.


Benno
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmebiEQFAwAAAAAACgkQUUu+Lrjhlh89
yRAAyLBl86j9pSBi0kU6lt9p3RCNnYQoEYPkWMP80M1R85L2jRM3kfyWXqLZTCg+AlzvZJCn8fFP
Hy+dQbFlW13w/jxogoW4jQq+1B3r+RNoJnltIoxjzSiN70zNcPYMrB30hlB0pDdy01Y5nzLFtjuA
jg1SjyiOCIJYN7q3Guz0cZp9kKpyDPnjhXo3lmxzmj9ounrNV6joHSwytVzKrF7AwByGYOgSRhyg
gcMDZaKQCgp6DrSDZ/wBOeYxKI7PoS4zR6XfcQiS0RK4vP6D8tdEvI4gLVY0+7aq7pxBfbS67Nc7
zu6Sy5s4y5CGOBJH7LABZ5JlaLPl/WuRZ6rveXHUr6h/ZZtj9bkOGbhBbl10/MM5xIflMYZ1X8qC
qHAWnJY3M/v5V69b9I42Q/efNjJzvGclo6bLVluXJd/M/2hbvlySSpnqBSbKkboC2uUN6H2oYIMj
5B+0ezviIK01iJaPTvqVMICSkiW37w3ghPqTKbr1om2MEaQohxpGdpDaM4YGUSgFdv5zSI2Fi6id
0NvGGYMZhq64rDu3umZyKCWIrnKeliV2BzumQa1vnNLdezgMo0PNgWpLEkLfOrMZCkvqwHcEqnXs
4k7bfiQbSs2wR9JU86rEepLihKoQdvnttGHREAc8F9yKp97kbGYXfgr/clHwZ4SDZKgswEa9oZtW
KNU=
=0AeJ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.