Order getopt arguments
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 12 Dec 2022 13:33:41 +0000 (14:33 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 12 Dec 2022 14:20:00 +0000 (15:20 +0100)
commitdf8b8968d4095f44acd6de03b4add65f9709b79d
tree249063ed382f2d9fc913729de73bac3d915afcab
parent840ff5f451cd9a391d237fc60894fea7ad82a189
Order getopt arguments

Order the letters in the arguments of getopt() and getopt_long(), as
well as in the subsequent switch statements.  In most cases, I used
alphabetical with lower case first.  In a few cases, existing
different orders (e.g., upper case first) was kept to reduce the diff
size.

Discussion: https://www.postgresql.org/message-id/flat/3efd0fe8-351b-f836-9122-886002602357%40enterprisedb.com
19 files changed:
src/backend/bootstrap/bootstrap.c
src/backend/postmaster/postmaster.c
src/backend/tcop/postgres.c
src/bin/pg_amcheck/pg_amcheck.c
src/bin/pg_archivecleanup/pg_archivecleanup.c
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_receivewal.c
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_checksums/pg_checksums.c
src/bin/pg_upgrade/option.c
src/bin/pgbench/pgbench.c
src/bin/scripts/clusterdb.c
src/bin/scripts/createdb.c
src/bin/scripts/dropdb.c
src/bin/scripts/dropuser.c
src/bin/scripts/reindexdb.c
src/bin/scripts/vacuumdb.c
src/interfaces/ecpg/preproc/ecpg.c
src/test/modules/libpq_pipeline/libpq_pipeline.c