Make --help output fit within 80 columns per line

torikoshia <torikoshia@oss.nttdata.com>

From: torikoshia <torikoshia@oss.nttdata.com>
To: Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2023-07-05T01:47:19Z
Lists: pgsql-hackers

Attachments

Hi,

As discussed in [1], outputs of --help for some commands fits into 80 
columns
per line, while others do not.

Since it seems preferable to have consistent line break policy and some 
people
use 80-column terminal, wouldn't it be better to make all commands in 80
columns per line?

Attached patch which does this for src/bin commands.

If this is the way to go, I'll do same things for contrib commands.

[1] 
https://www.postgresql.org/message-id/3fe4af5a0a81fc6a2ec01cb484c0a487%40oss.nttdata.com


-- 
Regards,

--
Atsushi Torikoshi
NTT DATA CORPORATION

Commits

  1. Add test for checking the line length of --help output

  2. Remove environment-variable-based defaults in psql --help